predict.nestcv.glmnet: Predict method for nestcv.glmnet fits

View source: R/nestedcv.R

predict.nestcv.glmnetR Documentation

Predict method for nestcv.glmnet fits

Description

Obtains predictions from the final fitted model from a nestcv.glmnet object.

Usage

## S3 method for class 'nestcv.glmnet'
predict(object, newdata, s = object$final_param["lambda"], ...)

Arguments

object

Fitted nestcv.glmnet object

newdata

New data to predict outcome on

s

Value of lambda for glmnet prediction

...

Other arguments passed to predict.glmnet.

Value

Object returned depends on the ... argument passed to predict method for glmnet objects.

See Also

glmnet::glmnet


nestedcv documentation built on Dec. 5, 2022, 5:25 p.m.