nonzero.glmnetcr {glmnetcr} | R Documentation |
Extract Non-Zero Model Coefficients
Description
The nonzero.glmnetcr
function returns only those non-zero coefficient estimates for a selected model
Usage
nonzero.glmnetcr(fit, s)
Arguments
fit |
a |
s |
the step at which the non-zero coefficient estimates are desired |
Value
a0 |
intercept estimate |
beta |
non-zero estimates for variables and ordinal thresholds |
Author(s)
Kellie J. Archer, archer.43@osu.edu
See Also
See Also as glmnetcr
, coef.glmnetcr
, select.glmnetcr
Examples
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)
[Package glmnetcr version 1.0.6 Index]