Description Usage Arguments Value Examples
View source: R/ridge-regression.R
This is a ridge regression function taking into account collinear or nearly collinear regression variables.
1 | ridge_regression(form, data, lambda)
|
form |
a formula with the legal format. |
data |
a dataframe provided by the user. |
lambda |
a penalty parameter specified by the user. |
a list including the coefficient estimates.
1 2 3 | data(iris)
fit <- ridge_regression(Sepal.Length ~ ., iris)
fit$coefficients
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.