Learn R Programming

ModelGood (version 1.0.7)

predictStatusProb: Probability Predictions

Description

This function can be used to extract probabilistic status predictions from various diagnostic and prognostic models with binary status response. The function invokes particular methods which depend on the 'class' of the first argument.

Usage

predictStatusProb(object, ...)
 ## S3 method for class 'glm':
predictStatusProb(object,newdata,...)
 ## S3 method for class 'randomForest':
predictStatusProb(object,newdata,...)
 ## S3 method for class 'lrm':
predictStatusProb(object,newdata,...)
 ## S3 method for class 'rpart':
predictStatusProb(object,newdata,...)

Arguments

object
A model from which predicted probabilities can be extracted for the indiviuals in newdata.
newdata
A data frame containing the predictor variable combinations for which predictions are desired. In medical applications newdata will often consist of the data of patients that were not used for building the model.
...
Additional arguments that are passed on to the current method.

Value

  • A vector with the predicted status probability for each row in NROW(newdata).

Details

The function delivers predicted probabilities tailored for the model performance measures of the package. These probabilities are extracted from a fitted model of class CLASS with the function predictStatusProb.CLASS.

See Also

predict,Roc