select.glmnet.cr: Select Step of Optimal Fitted AIC or BIC CR Model
Description
This function returns the step number associated with the minimum AIC or BIC models for a glmnet.cr object and so can be used in selecting the step number in calls in functions such as coef.glmnet.cr, nonzero.glmnet.cr, and fitted.glmnet.cr
Usage
select.glmnet.cr(fit, which = "BIC")
Arguments
fit
a glmnet.cr object
which
determines whether the step is associated with the optimal which="BIC" model or which="AIC" model
Value
A numeric value of length one representing the step number.