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

Description Usage Arguments Details Value Author(s) See Also

View source: R/summary.R

Description

Make predictions from the model.

Usage

1
2
3
## 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 <[email protected]>, Shujie Ma <[email protected]>, Zhenqiu Liu <[email protected]>

See Also

coef method and l0ara function.


l0ara documentation built on July 24, 2017, 9:01 a.m.