coef.glmnetcr {glmnetcr} | R Documentation |
Extract All Model Coefficients
Description
The coef.glmnetcr
function returns all estimated coefficients for a glmnetcr
fitted model, where the model selected is indicated by step s.
Usage
## S3 method for class 'glmnetcr'
coef(object, s, ...)
Arguments
object |
a |
s |
the step at which the coefficient estimates are desired |
... |
additional optional arguments |
Value
a0 |
the intercept |
beta |
estimated coefficients for the variables and the ordinal thresholds |
Author(s)
Kellie J. Archer, archer.43@osu.edu
See Also
See Also as glmnetcr
, nonzero.glmnetcr
, select.glmnetcr
Examples
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
glmnet.fit <- glmnetcr(x, y)
BIC.model <- select.glmnetcr(glmnet.fit)
estimates <- coef(glmnet.fit, s = BIC.model)
[Package glmnetcr version 1.0.6 Index]