ridgereg-class: A RC class for ridge regression models

Description Fields Methods

Description

A RC class for ridge regression models

Fields

formula

A formula

data

A dataset which we apply the formula (data.frame)

lambda

A numeric parameter

Methods

coef()

Returns the regression coefficients

pred(values = NULL)

Returns fitted values

print()

Prints the call of the class and ridge regression coefficients in named vector

resid()

Returns residual values


SimonJonsson/lab7 documentation built on May 28, 2019, 3:16 p.m.