Learn R Programming

misclassGLM (version 0.3.5)

predict.misclassMlogit: Predict Method for misclassMlogit Fits

Description

Obtains predictions

Usage

## S3 method for class 'misclassMlogit'
       # S3 method for misclassMlogit
predict(object, X, P = NULL, type = c("link", "response"),
       na.action = na.pass, ...)

Arguments

object

a fitted object of class inheriting from 'misclassMlogit'.

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 newdata. The default is to predict NA.

...

additional arguments (not used at the moment)

See Also

misclassMlogit