Make predictions from the model.
# S3 method for l0ara
predict(object, newx, type = c("link", "response",
"coefficients", "class"), ...)
Fitted "l0ara" object.
Matrix of new values for x at which predictions are to be made. Must be a matrix.
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.
The object returned depends the functions.
This function makes it easier to use the results to make a prediction or to see the fitted model.