coef.glmpathcr | R Documentation |
The coef.glmpathcr
function returns all estimated coefficients for a glmpathcr
fitted model, where the model selected is indicated by step s.
## S3 method for class 'glmpathcr'
coef(object, s, weight = NULL, eps = .Machine$double.eps, ...)
object |
a |
s |
the step at which the coefficient estimates are desired |
weight |
weights, if any |
eps |
effective zero |
... |
additional arguments |
A vector of estimated coefficients is returned. The coef.glmpathcr
function returns all estimated coefficients for a glmpathcr fitted model, where the model selected is indicated by step s.
Kellie J. Archer, archer.43@osu.edu
See also as glmpathcr
, nonzero.coef
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
fit <- glmpathcr(x, y)
step <- model.select(fit, which="BIC")
## Not run: coef(fit, s = step)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.