View source: R/nonzero.glmnetcr.R
nonzero.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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.