Similar to the usual predict methods,
this function returns predictions from a fitted 'RAMP' object.
# S3 method for RAMP
predict(object, newdata = NULL, type = c("link",
"response", "class"), allpath = FALSE, ...)Fitted 'RAMP' model object.
Matrix of new values for x at which predictions
are to be made, without the intercept term.
Type of prediction required.
Type 'response' gives the fitted values for 'gaussian',
fitted probabilities for 'binomial',
fitted mean for 'poisson',
and the fitted relative risk for 'cox'.
Type 'link' returns the linear predictors for
'binomial', 'poisson' and 'cox' models;
for 'gaussian' models it is equivalent to type
'response'. Type 'class' applies only to 'binomial' models,
and produces the class label corresponding to the maximum probability (0-1 labels).
allpath = T will output all the predictions on the solution path. allpath = FALSE will only output the one the criterion selected in the 'RAMP' object.
Not used. Other arguments to predict.
The object returned depends on type.