predict.misclassGLM: Predict Method for 'misclassGLM' Fits

Description Usage Arguments See Also

View source: R/misclassGLM.R

Description

Obtains predictions

Usage

1
2
3
4
## 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 newdata. The default is to predict NA.

...

additional arguments (not used at the moment)

See Also

misclassGLM


misclassGLM documentation built on Feb. 11, 2020, 1:07 a.m.