ridgeRegression: No intercept ridge regression, optimal lambda

Description Usage Arguments Value

Description

Computes the ridge regression estimate, optimizing over the tuning parameter lambda using generalized cross validation (GCV)

Usage

1
ridgeRegression(X, Y, lam.upper = min(dim(X)))

Arguments

X

design matrix

Y

response vector

lam.upper

a vector with the smallest and largest lambda values to try

Value

A list containing th vector of coefficients at the GCV minimizing value of lambda (bhat) and the best value of lambda (lamStar).


dajmcdon/cplr documentation built on May 14, 2019, 3:29 p.m.