coef.ridgereg: Coefficients for ridgereg class

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Coefficients for ridgereg class

Usage

1
2
## S3 method for class 'ridgereg'
coef(object, ...)

Arguments

object

a ridge class object

...

optional arguments to pass to generic

Value

A vector of coefficients for a linreg class object

Examples

1
2
3
data(mtcars)
model <- ridgereg(mpg~wt+cyl, mtcars,lambda = 0, QR = FALSE)
coef(model)

hankOlofs/linreg documentation built on Nov. 2, 2020, 11:25 a.m.