Description Usage Arguments Value Examples
This function performs ridge regression of Y on X.
1 | myRidge(X, Y, lambda)
|
X |
an n x p matrix of explanatory variables. |
Y |
an n vector or matrix of dependent variables. |
lambda |
regularization parameter for lambda >= 0 |
Returns a vector of betas, the ridge regression solution with p + 1 elements
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.