Description Usage Arguments Value Examples
View source: R/ridge_regression.R
Implement a ridge regression function taking into account colinear (or nearly colinear) regression variables.
1 | ridge_regression(formula, data, lambda = 0, contrasts = NULL, tol = 1e-08)
|
formula |
a formula that accounts for the model of interest |
data |
a dataframe that contains the variables of interest |
lambda |
ridge penalty with default value 0 |
contrasts |
an list of contrast |
tol |
a tolerance to detect collinearity |
A list of beta estimates and the formula.
1 2 | data(iris)
ridge_regression(Sepal.Length ~ ., iris, 0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.