In R, you can use the package \(\texttt{glmnet}\) for ridge/lasso regression and the package \(\texttt{pls}\) for PCR/PLS regression. There are functions for doing cross-validation in both packages.
Hints for problem 3.17
Published Aug. 8, 2025 10:11 AM
- Last modified Sep. 4, 2025 6:46 PM