cv_coef {nestedcv} | R Documentation |
Coefficients from outer CV glmnet models
Description
Extracts coefficients from outer CV glmnet models from a nestcv.glmnet
fitted object.
Usage
cv_coef(x, level = 1)
Arguments
x |
a |
level |
For multinomial models only, either an integer specifying which level of outcome is being examined, or the level can be specified as a character value |
Value
matrix of coefficients from outer CV glmnet models plus the final glmnet model. Coefficients for variables which are not present in a particular outer CV fold model are set to 0.
See Also
[Package nestedcv version 0.7.9 Index]