predict.l0ara {l0ara} | R Documentation |
make predictions from a "l0ara" object.
Description
Make predictions from the model.
Usage
## S3 method for class 'l0ara'
predict(object, newx, type = c("link", "response",
"coefficients", "class"), ...)
Arguments
object |
Fitted "l0ara" object. |
newx |
Matrix of new values for x at which predictions are to be made. Must be a matrix. |
type |
Type of prediction required. "link" gives the linear predictors(for "gaussian" models it gives the fitted values). "response" gives the fitted probabilities for "logit" and fitted mean for "poisson". "coefficients" gives the coefficients which is same as "coef" function. "class" (applies only to "logit") produces the class label corresponding to the maximum probability. |
... |
Not used argument. |
Details
This function makes it easier to use the results to make a prediction or to see the fitted model.
Value
The object returned depends the functions.
Author(s)
Wenchuan Guo <wguo007@ucr.edu>, Shujie Ma <shujie.ma@ucr.edu>, Zhenqiu Liu <Zhenqiu.Liu@cshs.org>
See Also
coef
method and l0ara
function.