Estimate regression coefficients by using ridge regression.
lm_multiv_ridge(Y, X, lambda = 0, do_scale = FALSE)
An N x K matrix of dependent variables.
An N x M matrix of regressors.
Numeric vector of lambda values
If true, X is centered and scaled, and Y is centered.
A list object with the components: 1) Psi - A list of estimated Psi matrices, 2) lambda - A vector of lambda values, 3) GCV - A vector of GCV values
Consider the multivariate regression: $$Y = X Psi + e.$$ Psi is a M-by-K matrix of regression coefficients. The ridge regression estimate for the coefficients is $$Psi = (X'X + lambda * I)^{-1} X'Y.$$
G. H. Golub, M. Heath, G. Wahba (1979). Generalized cross-validation as a method for choosing a good ridge parameter. Technometrics 21(2), 215-223. doi: 10.2307/1268518