ridgereg: Perform Ridge regression with OLS

Description Usage Arguments Value Examples

View source: R/ridgereg.R

Description

Perform Ridge regression with OLS

Usage

1
ridgereg(formula, data, lambda = 0)

Arguments

formula

An object of the class formula.

data

A data set of the class data.frame.

lambda

A numeric value.

Value

The function returns the results of the Ridge regression as an object of class "ridgereg".

Examples

1
ridredge_obj <- ridgereg(Petal.Length~Species, datasets::iris)

hugkn566/Lab4HugoOtto documentation built on Oct. 20, 2020, 2:17 p.m.