R-CMD-check Lifecycle: stable Last Commit CRAN metacran downloads

cv package for R: Cross-Validating Regression Models

The cv package for R provides a consistent and extensible framework for cross-validating standard R statistical models. Some of the functions supplied by the package:

For additional introductory information on using the cv package, see the “Cross-validating regression models” vignette (vignette("cv", package="cv")). There are also vignettes on cross-validating mixed-effects models (vignette("cv-mixed", package="cv")), cross-validating model selection (vignette("cv-selection", package="cv")), and computational and technical notes (vignette("cv-notes", package="cv")). The cv package is designed to be extensible to other classes of regression models, other CV criteria, and other model-selection procedures; for details, see the “Extending the cv package” vignette (vignette("cv-extend", package="cv")).

Installing the cv package

To install the current version of the cv package from CRAN:

install.packages("cv")

To install the development version of the cv package from GitHub:

if (!require(remotes)) install.packages("remotes")
remotes::install_github("gmonette/cv", build_vignettes=TRUE,
  dependencies=TRUE)