l0ara (version 0.1.6)

predict.l0ara: make predictions from a "l0ara" object.

Description

Make predictions from the model.

Usage

# S3 method for 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.

Value

The object returned depends the functions.

Details

This function makes it easier to use the results to make a prediction or to see the fitted model.

See Also

coef method and l0ara function.