coefficients.ridgetrace {GCEstim}R Documentation

Extract ridgetrace Model Coefficients

Description

Extract coefficients from a ridgetrace object

Usage

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

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.

Value

Returns the coefficients from a ridgetrace object

Author(s)

Jorge Cabral, jorgecabral@ua.pt

Examples

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

coefficients(res.ridgetrace)


[Package GCEstim version 0.1.0 Index]