cvLM: Cross-Validation for Linear and Ridge Regression Models

Implements cross-validation methods for linear and ridge regression models. The package provides grid-based selection of the ridge penalty parameter using Singular Value Decomposition (SVD) and supports K-fold cross-validation, Leave-One-Out Cross-Validation (LOOCV), and Generalized Cross-Validation (GCV). Computations are implemented in C++ via 'RcppArmadillo' with optional parallelization using 'RcppParallel'. The methods are suitable for high-dimensional settings where the number of predictors exceeds the number of observations.

Package details

AuthorPhilip Nye [aut, cre]
MaintainerPhilip Nye <phipnye@proton.me>
LicenseMIT + file LICENSE
Version2.0.0
URL https://github.com/phipnye/CV-LM
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("cvLM")

Try the cvLM package in your browser

Any scripts or data that you put into this service are public.

cvLM documentation built on Feb. 3, 2026, 5:06 p.m.