predict.ordinalgmifs {ordinalgmifs} | R Documentation |
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 class 'ordinalgmifs'
predict(object, neww = NULL, newdata, newx = NULL, model.select = "AIC", ...)
Arguments
object |
an |
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 |
... |
other arguments. |
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. |
Author(s)
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