Description Usage Arguments Value Examples
This is a ridge regression function taking into account collinear or nearly collinear regression variables.
1 | ridge_R(X, Y, lambda = 0.01)
|
X |
a X model matrix created by function "model_matrices". |
Y |
a Y vector created by function "model_matrices". |
lambda |
a penalty parameter specified by the user (default=0.01). |
a list including the coefficient estimates.
1 2 3 | data(iris)
fit <- ridge_regression(X, Y)
fit$coefficients
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.