Learn R Programming

GCEstim (version 0.1.0)

coefficients.ridgetrace: Extract ridgetrace Model Coefficients

Description

Extract coefficients from a ridgetrace object

Usage

# S3 method for ridgetrace
coefficients(object, which = "min.error", ...)

Value

Returns the coefficients from a ridgetrace object

Arguments

object

Fitted ridgetrace model object.

which

One of c("min.error", "max.abs"). If which = "min.error", the default, the coefficients that produced the lowest error cross-validation error (cv = TRUE),or in sample error are returned (cv = FALSE). If which = "max.abs" then the maximum absolute coefficients are returned.

...

Additional arguments.

Author

Jorge Cabral, jorgecabral@ua.pt

Examples

Run this code
res.ridgetrace <-
  ridgetrace(
    formula = y ~ X001 + X002 + X003 + X004 + X005,
    data = dataGCE)

coefficients(res.ridgetrace)

Run the code above in your browser using DataLab