predict.l0ara: Make predictions from a '"l0ara"' object

View source: R/summary.R

predict.l0araR Documentation

Make predictions from a "l0ara" object

Description

Generate linear predictors, response-scale predictions, class labels, or fitted coefficients from a "l0ara" fit.

Usage

## S3 method for class 'l0ara'
predict(
  object,
  newx,
  type = c("link", "response", "coefficients", "class"),
  ...
)

Arguments

object

Fitted "l0ara" object.

newx

Matrix of new predictor values. If omitted, predictions are made for the training design matrix stored in object$x.

type

Type of prediction required. "link" returns the linear predictor. "response" returns the response-scale mean implied by the model family. "coefficients" returns the fitted coefficient vector. "class" is available only for family = "logit" and returns 0/1 class labels using a cutoff of 0 on the linear predictor.

...

Not used argument.

Details

For Gaussian models, type = "link" and type = "response" return the same values.

Value

The return value depends on type: a numeric vector of linear predictors or response-scale predictions, a named coefficient vector, or a numeric vector of 0/1 class labels.

Author(s)

Wenchuan Guo <wguo007@ucr.edu>, Shujie Ma <shujie.ma@ucr.edu>, Zhenqiu Liu <Zhenqiu.Liu@cshs.org>

See Also

coef.l0ara, l0ara.


l0ara documentation built on April 27, 2026, 9:08 a.m.