This function returns a list the includes the predicted probabilities as well as the predicted class for an ordinalgmifs
fitted object.
# S3 method for ordinalgmifs
predict(object, neww = NULL, newdata, newx = NULL, model.select = "AIC", ...)
a matrix of predicted probabilities from the fitted model.
a vector containing the predicted class taken as that class having the largest predicted probability.
other arguments.
an ordinalgmifs
fitted object.
an optional formula that includes the unpenalized variables to use for predicting the response. If omitted, the training data are used.
an optional data.frame that minimally includes the unpenalized variables to use for predicting the response. If omitted, the training data are used.
an optional matrix of penalized variables to use for predicting the response. If omitted, the training data are used.
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.
Kellie J. Archer, Jiayi Hou, Qing Zhou, Kyle Ferber, John G. Layne, Amanda Gentry
See Also ordinalgmifs
, coef.ordinalgmifs
, summary.ordinalgmifs
, plot.ordinalgmifs