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 <wguo007@ucr.edu>, Shujie Ma <shujie.ma@ucr.edu>, Zhenqiu Liu <Zhenqiu.Liu@cshs.org>

See Also

coef method and l0ara function.


wguo1990/l0ara documentation built on Feb. 6, 2020, 2:12 p.m.