{
  "_id": "6a4f3f4b21b18e15484ffa0a",
  "Package": "cv",
  "Type": "Package",
  "Title": "Cross-Validating Regression Models",
  "Version": "2.0.6",
  "Date": "2026-06-08",
  "Authors@R": "c(person(\"John\", \"Fox\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-1196-8012\")),\nperson(\"Georges\", \"Monette\", role = c(\"aut\", \"cre\"), email = \"georges+cv@yorku.ca\",\ncomment = c(ORCID =\"0000-0003-0076-5532\")))",
  "Description": "Cross-validation methods of regression models that exploit\nfeatures of various modeling functions to improve speed. Some\nof the methods implemented in the package are novel, as\ndescribed in Fox and Monette (2026)\n<doi:10.18637/jss.v116.i08>, and the package vignettes. For\ngeneral introductions to cross-validation, see, for example,\nGareth James, Daniela Witten, Trevor Hastie, and Robert\nTibshirani (2021, ISBN 978-1-0716-1417-4, Secs. 5.1, 5.3), \"An\nIntroduction to Statistical Learning with Applications in R,\nSecond Edition\", and Trevor Hastie, Robert Tibshirani, and\nJerome Friedman (2009, ISBN 978-0-387-84857-0, Sec. 7.10), \"The\nElements of Statistical Learning, Second Edition\".",
  "LazyData": "TRUE",
  "VignetteBuilder": "knitr, rmarkdown",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "8.0.0",
  "URL": "https://gmonette.github.io/cv/,\nhttps://CRAN.R-project.org/package=cv",
  "BugReports": "https://github.com/gmonette/cv/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://gmonette.r-universe.dev",
  "Date/Publication": "2026-06-09 02:28:54 UTC",
  "RemoteUrl": "https://github.com/gmonette/cv",
  "RemoteRef": "HEAD",
  "RemoteSha": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-09 06:21:19 UTC",
    "User": "root"
  },
  "Author": "John Fox [aut] (ORCID: <https://orcid.org/0000-0002-1196-8012>),\nGeorges Monette [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0076-5532>)",
  "Maintainer": "Georges Monette <georges+cv@yorku.ca>",
  "_user": "gmonette",
  "_type": "src",
  "_file": "cv_2.0.6.tar.gz",
  "_fileid": "https://r2.ropensci.org/dc58f2c0cba4832ac6e6e20c74ac60e6331d223a8ae8a34437ba739b63099277",
  "_filesize": 5349918,
  "_sha256": "dc58f2c0cba4832ac6e6e20c74ac60e6331d223a8ae8a34437ba739b63099277",
  "_expires": "2026-10-17T06:27:21.000Z",
  "_created": "2026-07-09T06:21:19.000Z",
  "_published": "2026-07-09T06:27:23.343Z",
  "_jobs": [
    {
      "job": 86053276875,
      "time": 184,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8190676054"
    },
    {
      "job": 86053276873,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8190673655"
    },
    {
      "job": 86053276884,
      "time": 217,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8190676562"
    },
    {
      "job": 86053276877,
      "time": 310,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8190695810"
    },
    {
      "job": 86051996191,
      "time": 552,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8190621697"
    },
    {
      "job": 86053276827,
      "time": 138,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8190662676"
    },
    {
      "job": 86053276900,
      "time": 126,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8190659301"
    },
    {
      "job": 86053276887,
      "time": 141,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8190663455"
    },
    {
      "job": 86053276863,
      "time": 130,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8190660801"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503",
  "_status": "success",
  "_upstream": "https://github.com/gmonette/cv",
  "_commit": {
    "id": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
    "author": "Georges Monette <georges@yorku.ca>",
    "committer": "Georges Monette <georges@yorku.ca>",
    "message": "delete some files\n",
    "time": 1780972134
  },
  "_maintainer": {
    "name": "Georges Monette",
    "email": "georges+cv@yorku.ca",
    "orcid": "0000-0003-0076-5532"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "doParallel",
      "role": "Depends"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "glmmTMB",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "gtools",
      "role": "Imports"
    },
    {
      "package": "insight",
      "role": "Imports"
    },
    {
      "package": "lattice",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Suggests"
    },
    {
      "package": "carData",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "effects",
      "role": "Suggests"
    },
    {
      "package": "ISLR2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "latticeExtra",
      "role": "Suggests"
    },
    {
      "package": "leaps",
      "role": "Suggests"
    },
    {
      "package": "Metrics",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "nnet",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "gmonette",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-39",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-24",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "john-d-fox",
      "count": 475,
      "uuid": 14098498
    },
    {
      "user": "gmonette",
      "count": 59,
      "uuid": 786234
    },
    {
      "user": "friendly",
      "count": 10,
      "uuid": 456353
    }
  ],
  "_userbio": {
    "uuid": 786234,
    "type": "user",
    "name": "Georges Monette",
    "followers": 18
  },
  "_downloads": {
    "count": 871,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cv"
  },
  "_devurl": "https://github.com/gmonette/cv",
  "_pkgdown": "https://gmonette.github.io/cv/",
  "_searchresults": 480,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cv.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/gmonette/cv",
  "_realowner": "gmonette",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2023-10-31"
    },
    {
      "version": "1.1.0",
      "date": "2024-01-27"
    },
    {
      "version": "2.0.0",
      "date": "2024-04-29"
    },
    {
      "version": "2.0.2",
      "date": "2024-08-19"
    },
    {
      "version": "2.0.3",
      "date": "2024-09-22"
    },
    {
      "version": "2.0.4",
      "date": "2025-06-16"
    },
    {
      "version": "2.0.6",
      "date": "2026-06-09"
    }
  ],
  "_exports": [
    "BayesRule",
    "BayesRule2",
    "checkFormula",
    "compareFolds",
    "cv",
    "cvCompute",
    "cvInfo",
    "cvMixed",
    "cvSelect",
    "fold",
    "folds",
    "GetResponse",
    "medAbsErr",
    "models",
    "mse",
    "rmse",
    "selectModelList",
    "selectStepAIC",
    "selectTrans",
    "selectTransStepAIC"
  ],
  "_datasets": [
    {
      "name": "Pigs",
      "title": "Body Weights of 48 Pigs in 9 Successive Weeks",
      "object": "Pigs",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "week",
        "weight"
      ],
      "rows": 432,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cv",
      "title": "Cross-Validate Regression Models",
      "topics": [
        "as.data.frame.cv",
        "as.data.frame.cvList",
        "cv",
        "cv.default",
        "cv.glm",
        "cv.lm",
        "cv.rlm",
        "cvInfo",
        "cvInfo.cv",
        "cvInfo.cvList",
        "cvInfo.cvModList",
        "plot.cv",
        "plot.cvList",
        "print.cv",
        "print.cvDataFrame",
        "print.cvList",
        "summary.cv",
        "summary.cvDataFrame",
        "summary.cvList"
      ]
    },
    {
      "page": "cv.function",
      "title": "Cross-Validate a Model-Selection Procedure",
      "topics": [
        "coef.cvSelect",
        "compareFolds",
        "cv.function",
        "cvInfo.cvSelect",
        "selectModelList",
        "selectStepAIC",
        "selectTrans",
        "selectTransStepAIC"
      ]
    },
    {
      "page": "cv.merMod",
      "title": "Cross-Validate Mixed-Effects Model",
      "topics": [
        "cv.glmmTMB",
        "cv.lme",
        "cv.merMod"
      ]
    },
    {
      "page": "cv.modList",
      "title": "Cross-Validate Several Models Fit to the Same Data",
      "topics": [
        "as.data.frame.cvModList",
        "cv.modList",
        "models",
        "plot.cvModList",
        "print.cvModList",
        "summary.cvModList"
      ]
    },
    {
      "page": "cvCompute",
      "title": "Utility Functions for the cv Package",
      "topics": [
        "checkFormula",
        "cvCompute",
        "cvMixed",
        "cvSelect",
        "fold",
        "fold.folds",
        "folds",
        "GetResponse",
        "GetResponse.default",
        "GetResponse.glmmTMB",
        "GetResponse.lme",
        "GetResponse.merMod",
        "GetResponse.modList",
        "print.folds"
      ]
    },
    {
      "page": "cost-functions",
      "title": "Cost Functions for Fitted Regression Models",
      "topics": [
        "BayesRule",
        "BayesRule2",
        "costFunctions",
        "medAbsErr",
        "mse",
        "rmse"
      ]
    },
    {
      "page": "Pigs",
      "title": "Body Weights of 48 Pigs in 9 Successive Weeks",
      "topics": [
        "Pigs"
      ]
    }
  ],
  "_readme": "https://github.com/gmonette/cv/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "codetools",
    "colorspace",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "doParallel",
    "dplyr",
    "farver",
    "foreach",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glmmTMB",
    "glue",
    "gtable",
    "gtools",
    "insight",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "TMB",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "cv-notes.Rmd",
      "filename": "cv-notes.html",
      "title": "Computational and technical notes on cross-validating regression models",
      "author": "John Fox and Georges Monette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Efficient computations for linear and generalized linear models",
        "Computation of the bias-corrected CV criterion and confidence intervals",
        "Why the complement of AUC isn't a casewise CV criterion",
        "The values of $\\mathrm{cv}(\\widehat{y}_i, y_i)$ that express AUC as a sum of casewise values are solutions of equation (\\ref{eq:cw}), which can be written as solutions of the following system of $2^{n_v}$ linear simultaneous equations in $2n_v$ unknowns:\\begin{equation}\\label{eq:lin}\\tag{2}(\\mathbf{U} -\\mathbf{Y}) \\mathbf{c}_0 + \\mathbf{Y} \\mathbf{c}_1",
        "References"
      ],
      "created": "2024-04-03 19:04:03",
      "modified": "2024-09-02 20:53:24",
      "commits": 6
    },
    {
      "source": "cv-mixed.Rmd",
      "filename": "cv-mixed.html",
      "title": "Cross-validating mixed-effects models",
      "author": "John Fox and Georges Monette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example: The High-School and Beyond data",
        "Example: Contrasting cluster-based and case-based CV",
        "Example: Crossed random effects",
        "References"
      ],
      "created": "2024-04-03 19:04:03",
      "modified": "2024-09-02 20:53:24",
      "commits": 6
    },
    {
      "source": "cv-selection.Rmd",
      "filename": "cv-selection.html",
      "title": "Cross-validating model selection",
      "author": "John Fox and Georges Monette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A preliminary example",
        "Polynomial regression for the Auto data revisited: meta cross-validation",
        "Mroz's logistic regression revisited",
        "Cross-validating choice of transformations in regression",
        "Selecting both transformations and predictors[^Venables]",
        "References"
      ],
      "created": "2024-04-03 19:04:03",
      "modified": "2024-09-15 20:56:57",
      "commits": 4
    },
    {
      "source": "cv.Rmd",
      "filename": "cv.html",
      "title": "Cross-validating regression models",
      "author": "John Fox and Georges Monette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Cross-validation",
        "Examples",
        "Polynomial regression for the Auto data",
        "Using cv()",
        "Comparing competing models",
        "Logistic regression for the Mroz data",
        "Replicating cross-validation",
        "Manipulating \"cv\" and related objects",
        "Parallel computations",
        "References"
      ],
      "created": "2023-08-03 21:22:11",
      "modified": "2026-06-09 02:15:11",
      "commits": 65
    },
    {
      "source": "cv-extend.Rmd",
      "filename": "cv-extend.html",
      "title": "Extending the cv package",
      "author": "John Fox and Georges Monette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Adding a cost criterion",
        "Adding a model class not covered by the default cv() method",
        "Independently sampled cases",
        "Calling cvCompute()",
        "Mixed-effects models",
        "Adding a model-selection procedure",
        "References"
      ],
      "created": "2023-08-25 23:50:20",
      "modified": "2024-09-05 14:51:13",
      "commits": 36
    }
  ],
  "_score": 8.03342375548695,
  "_indexed": true,
  "_nocasepkg": "cv",
  "_universes": [
    "gmonette"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.6",
      "date": "2026-07-09T06:24:04.000Z",
      "distro": "resolute",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/b3336404053332418ff2d1b23ea61e1b3eb4859ddbd7cf1e08424f2ea7bcf53c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.0.6",
      "date": "2026-07-09T06:23:57.000Z",
      "distro": "resolute",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/b854b4620ce900a312e3336f1579a1dfb752c9a3db6c4f900e17c0a69bf3b399",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.6",
      "date": "2026-07-09T06:24:18.000Z",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/46c58ba2b04fe9bcf6b6738f3d075d9ea3199b30416db5316b562c3cb584d6b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.0.6",
      "date": "2026-07-09T06:24:47.000Z",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/0d0e993c4856dd39e854e011e306d757311be044afd7dd765253b34839394053",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.6",
      "date": "2026-07-09T06:24:04.000Z",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/708a8e8beb69e53ba326877f380a84e7bce59e2651b03a3c1e76139b06058fef",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.6",
      "date": "2026-07-09T06:22:52.000Z",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/350015b1496d2915dc77d0870809a7146c9be0d263367d38e67ec38fe7db368b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.6",
      "date": "2026-07-09T06:23:03.000Z",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/1feedc21ee9ae973197d57ca107bdd5c65aa7ac96e1451a0a927f6d304dd671a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.0.6",
      "date": "2026-07-09T06:23:01.000Z",
      "commit": "7facc7a9f2910894cb900c94cd0cb99dd06b6425",
      "fileid": "https://r2.ropensci.org/fa80351b5eb2c05164a86827ace1a18927fc4265bacaf56a195a5d16e3d4580f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gmonette/actions/runs/28998015503"
    }
  ]
}