Learn R Programming

ordinalgmifs (version 1.0.8)

predict.ordinalgmifs: Predicted Probabilities and Class for Ordinal GMIFS Fit.

Description

This function returns a list the includes the predicted probabilities as well as the predicted class for an ordinalgmifs fitted object.

Usage

# S3 method for ordinalgmifs
predict(object, neww = NULL, newdata, newx = NULL, model.select = "AIC", ...)

Value

predicted

a matrix of predicted probabilities from the fitted model.

class

a vector containing the predicted class taken as that class having the largest predicted probability.

...

other arguments.

Arguments

object

an ordinalgmifs fitted object.

neww

an optional formula that includes the unpenalized variables to use for predicting the response. If omitted, the training data are used.

newdata

an optional data.frame that minimally includes the unpenalized variables to use for predicting the response. If omitted, the training data are used.

newx

an optional matrix of penalized variables to use for predicting the response. If omitted, the training data are used.

model.select

when x is specified any model along the solution path can be selected. The default is model.select="AIC" which calculates the predicted values using the coefficients from the model having the lowest AIC. Other options are model.select="BIC" or any numeric value from the solution path.

...

other arguments.

Author

Kellie J. Archer, Jiayi Hou, Qing Zhou, Kyle Ferber, John G. Layne, Amanda Gentry

See Also

See Also ordinalgmifs, coef.ordinalgmifs, summary.ordinalgmifs, plot.ordinalgmifs