model.select | R Documentation |
This function returns the step number associated with the minimum AIC and BIC models for a glmpathcr
object and so can be used in selecting the step number for calls to functions such as coef.glmpathcr
and predict.glmpathcr
.
model.select(object, which = "BIC")
object |
a |
which |
determines whether the step is associated with the optimal |
A numeric value of length one representing the step number
Kellie J. Archer, archer.43@osu.edu
See also as coef.glmpathcr
, predict.glmpathcr
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
fit <- glmpathcr(x, y)
model.select(fit, which="AIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.