predict.sparseR: Predict coefficients or responses for sparseR object

View source: R/sparseR.R

predict.sparseRR Documentation

Predict coefficients or responses for sparseR object

Description

Predict coefficients or responses for sparseR object

Usage

## S3 method for class 'sparseR'
predict(object, newdata, lambda, at = c("cvmin", "cv1se"), ...)

## S3 method for class 'sparseR'
coef(object, lambda, at = c("cvmin", "cv1se"), ...)

Arguments

object

sparseR object

newdata

new data on which to make predictions

lambda

a particular value of lambda to predict with

at

a "smart" guess to use for lambda

...

additional arguments passed to predict.ncvreg

Value

predicted outcomes for 'newdata' (or coefficients) at specified (or smart) lambda value


petersonR/sparseR documentation built on April 17, 2025, 11:41 p.m.