model.select {glmpathcr}R Documentation

Step of Optimal Fitted AIC or BIC CR Model.

Description

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.

Usage

model.select(object, which = "BIC")

Arguments

object

a glmpathcr object

which

determines whether the step is associated with the optimal which="BIC" model or which="AIC" model

Value

A numeric value of length one representing the step number

Author(s)

Kellie J. Archer, archer.43@osu.edu

See Also

See also as coef.glmpathcr, predict.glmpathcr

Examples

data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
fit <- glmpathcr(x, y)
model.select(fit, which="AIC")

[Package glmpathcr version 1.0.10 Index]