Description Usage Arguments Value
Computes the ridge regression estimate, optimizing over the tuning parameter lambda using generalized cross validation (GCV)
1 | ridgeRegression(X, Y, lam.upper = min(dim(X)))
|
X |
design matrix |
Y |
response vector |
lam.upper |
a vector with the smallest and largest lambda values to try |
A list containing th vector of coefficients at the GCV minimizing value of lambda (bhat
) and the best value of lambda (lamStar
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.