Description Usage Arguments Value Author(s) See Also Examples
View source: R/select.glmnetcr.R
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
1 | select.glmnetcr(fit, which = "BIC")
|
fit |
a |
which |
determines whether the step is associated with the optimal |
A numeric value of length one representing the step number.
Kellie J. Archer, archer.43@osu.edu
See Also as coef.glmnetcr
, nonzero.glmnetcr
, fitted.glmnetcr
1 2 3 4 5 6 7 |
Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-16
Warning message:
from glmnet Fortran code (error code -26); Convergence for 26th lambda value not reached after maxit=100 iterations; solutions for larger lambdas returned
s23
24
$a0
s23
3.192533
$beta
ILMN_1705116 ILMN_1759232 cp1 cp2
6.614969e-03 -2.035163e-02 1.894492e+00 2.153126e-15
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.