nonzero.glmnetcr {glmnetcr} | R Documentation |
The nonzero.glmnetcr
function returns only those non-zero coefficient estimates for a selected model
nonzero.glmnetcr(fit, s)
fit |
a |
s |
the step at which the non-zero coefficient estimates are desired |
a0 |
intercept estimate |
beta |
non-zero estimates for variables and ordinal thresholds |
Kellie J. Archer, archer.43@osu.edu
See Also as glmnetcr
, coef.glmnetcr
, select.glmnetcr
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
glmnet.fit <- glmnetcr(x, y)
AIC.step <- select.glmnetcr(glmnet.fit, which = "AIC")
nonzero.glmnetcr(glmnet.fit, s = AIC.step)