Description Usage Arguments Examples
Perform ridge regression, which is able to deal with collinearity among the columns of the design
1 | my_lm_ridge(form, data, lambda)
|
form |
a formula object, e.g. y ~ x1 + x2 |
data |
a data frame |
lambda |
a scalar (tuning parameter) from 0 to infinity, also called the penalty parameter |
1 2 3 | data(iris)
ridge_fit <- my_lm_ridge(form = Sepal.Length ~ ., data = iris, lambda = 0.5)
ridge_fit$coefficients
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.