A RC class for ridge regression models
formula
A formula
data
A dataset which we apply the formula (data.frame)
lambda
A numeric parameter
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.