coef.glmnetcr: Extract All Model Coefficients

Description Usage Arguments Value Author(s) See Also Examples

View source: R/coef.glmnetcr.R

Description

The coef.glmnetcr function returns all estimated coefficients for a glmnetcr fitted model, where the model selected is indicated by step s.

Usage

1
2
## S3 method for class 'glmnetcr'
coef(object, s, ...)

Arguments

object

a glmnetcr object

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

1
2
3
4
5
6
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)

glmnetcr documentation built on July 8, 2020, 6:21 p.m.