View source: R/coef.glmnetcr.R
coef.glmnetcr | R Documentation |
The coef.glmnetcr
function returns all estimated coefficients for a glmnetcr
fitted model, where the model selected is indicated by step s.
## S3 method for class 'glmnetcr'
coef(object, s, ...)
object |
a |
s |
the step at which the coefficient estimates are desired |
... |
additional optional arguments |
a0 |
the intercept |
beta |
estimated coefficients for the variables and the ordinal thresholds |
Kellie J. Archer, archer.43@osu.edu
See Also as glmnetcr
, nonzero.glmnetcr
, select.glmnetcr
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.