coef.glmpathcr {glmpathcr} | R Documentation |
Extract All Model Coefficients
Description
The coef.glmpathcr
function returns all estimated coefficients for a glmpathcr
fitted model, where the model selected is indicated by step s.
Usage
## S3 method for class 'glmpathcr'
coef(object, s, weight = NULL, eps = .Machine$double.eps, ...)
Arguments
object |
a |
s |
the step at which the coefficient estimates are desired |
weight |
weights, if any |
eps |
effective zero |
... |
additional arguments |
Value
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.
Author(s)
Kellie J. Archer, archer.43@osu.edu
See Also
See also as glmpathcr
, nonzero.coef
Examples
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)
[Package glmpathcr version 1.0.10 Index]