ridgereg: Fitting a ridge regression

Description Usage Arguments Value References Examples

View source: R/ridgereg.R

Description

ridgereg is used to fit models ridge regression..

Usage

1
ridgereg(formula, data, lambda, QR = FALSE)

Arguments

formula

an object of class formula.

data

a data frame containing all the variables in the regression model stated in the argument formula.

lambda

a scalar or vector of ridge constants.

QR

a boolean if TRUE use QR decomposition, default = FALSE

Value

ridgereg return a named list of class "ridgereg".

References

https://en.wikipedia.org/wiki/Tikhonov_regularization

Examples

1
ridgereg(formula = Petal.Length~Species, data = iris, lambda =0, QR = FALSE)

Sidryd/lab4sidjac documentation built on Oct. 17, 2020, 11:05 p.m.