predict.misclassGLM {misclassGLM} | R Documentation |
Predict Method for misclassGLM
Fits
Description
Obtains predictions
Usage
## S3 method for class 'misclassGLM'
## S3 method for class 'misclassGLM'
predict(object, X, P = NULL, type = c("link", "response"),
na.action = na.pass, ...)
Arguments
object |
a fitted object of class inheriting from 'misclassGLM'. |
X |
matrix of fixed covariates |
P |
a-posteriori probabilities for the true values of the misclassified variable. If provided, the conditional expectation on X,P is computed, otherwise a set of marginal predictions is provided, one for each alternative. |
type |
the type of prediction required. The default is on the scale of the linear predictors; the alternative "response" is on the scale of the response variable. Thus for a default binomial model the default predictions are of log-odds (probabilities on logit scale) and type = "response" gives the predicted probabilities. The value of this argument can be abbreviated. |
na.action |
function determining what should be done with missing values in |
... |
additional arguments (not used at the moment) |