predict {ensr}R Documentation

Predict Methods for ensr objects

Description

Using either the lambda.min or lambda.1se, find the preferable model from the ensr object and return a prediction.

Usage

## S3 method for class 'ensr'
predict(object, ...)

## S3 method for class 'ensr'
coef(object, ...)

Arguments

object

a ensr object

...

other arguments passed along to predict

Details

The glmnet::predict argument s is ignored if specified and attempted to be passed via .... The value of s that is passed to glmnet::predict is determined by the value of lambda.min or lambda.1se found from a call to preferable.


[Package ensr version 0.1.0 Index]