Package: surveyCV 0.2.0.9003

Jerzy Wieczorek

surveyCV: Cross Validation Based on Survey Design

Functions to generate K-fold cross validation (CV) folds and CV test error estimates that take into account how a survey dataset's sampling design was constructed (SRS, clustering, stratification, and/or unequal sampling weights). You can input linear and logistic regression models, along with data and a type of survey design in order to get an output that can help you determine which model best fits the data using K-fold cross validation. Our paper on "K-Fold Cross-Validation for Complex Sample Surveys" by Wieczorek, Guerin, and McMahon (2022) <doi:10.1002/sta4.454> explains why differing how we take folds based on survey design is useful.

Authors:Cole Guerin [aut], Thomas McMahon [aut], Jerzy Wieczorek [cre, aut], Ben Schneider [ctb], Hunter Ratliff [ctb]

surveyCV_0.2.0.9003.tar.gz
surveyCV_0.2.0.9003.zip(r-4.5)surveyCV_0.2.0.9003.zip(r-4.4)surveyCV_0.2.0.9003.zip(r-4.3)
surveyCV_0.2.0.9003.tgz(r-4.4-any)surveyCV_0.2.0.9003.tgz(r-4.3-any)
surveyCV_0.2.0.9003.tar.gz(r-4.5-noble)surveyCV_0.2.0.9003.tar.gz(r-4.4-noble)
surveyCV_0.2.0.9003.tgz(r-4.4-emscripten)surveyCV_0.2.0.9003.tgz(r-4.3-emscripten)
surveyCV.pdf |surveyCV.html
surveyCV/json (API)
NEWS

# Install 'surveyCV' in R:
install.packages('surveyCV', repos = c('https://colbystatsvyrsch.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/colbystatsvyrsch/surveycv/issues

Datasets:
  • NSFG_data - Subset of the 2015-2017 National Survey of Family Growth (NSFG): one birth per respondent.
  • NSFG_data_everypreg - Subset of the 2015-2017 National Survey of Family Growth (NSFG): all live births per respondent.

On CRAN:

6 exports 7 stars 1.47 score 11 dependencies 19 scripts 242 downloads

Last updated 2 years agofrom:c14d5b5192. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 13 2024
R-4.5-winOKSep 13 2024
R-4.5-linuxOKSep 13 2024
R-4.4-winOKSep 13 2024
R-4.4-macOKSep 13 2024
R-4.3-winOKSep 13 2024
R-4.3-macOKSep 13 2024

Exports:%>%cv.svycv.svydesigncv.svyglmfolds.svyfolds.svydesign

Dependencies:DBIlatticemagrittrMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival

surveyCV: Cross Validation Based on Survey Design

Rendered fromintro.rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2022-03-15
Started: 2021-04-13

Plots for our surveyCV Stat paper based on SDSS presentation

Rendered fromplots-for-Stat-paper.rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2022-01-11
Started: 2021-07-17

Informal tests of surveyCV using the Auto dataset

Rendered fromtest-Auto.rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2021-07-12
Started: 2021-07-08