predict.cva.glmnet: Predict method for cva.glmnet models

View source: R/cva.glmnet.R

predict.cva.glmnetR Documentation

Predict method for cva.glmnet models

Description

Makes predictions from a cross-validated glmnet model with optimal value of lambda and alpha.

Usage

## S3 method for class 'cva.glmnet'
predict(object, newx, s = "lambda.1se", ...)

Arguments

object

Fitted cva.glmnet object.

newx

Matrix of new values for x at which predictions are to be made.

s

Value of penalty parameter lambda. Default value is s="lambda.1se" for consistency with glmnet. Alternatively s="lambda.min" can be used.

...

Other arguments passed to predict.cv.glmnet().

Value

Object returned depends on arguments in ... such as type.


nestedcv documentation built on June 22, 2024, 11:30 a.m.