Description Usage Arguments Value Author(s) Examples
View source: R/ridge_regression.R
Implement a ridge regression function taking into account colinear (or nearly colinear) regression variables.
1 | ridge_regression(form, d, contrasts = NULL, lambda = 0.1)
|
form |
a formula |
d |
a dataframe |
contrasts |
contrasts argument |
lambda |
ridge penalty term |
a list of beta coefficients
Yijun Yang
1 2 3 4 | ## Not run:
ridge_regression(body_mass_g ~ bill_depth_mm, penguins)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.