Package: surveyCV 0.2.0.9003
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:
surveyCV_0.2.0.9003.tar.gz
surveyCV_0.2.0.9003.zip(r-4.7)surveyCV_0.2.0.9003.zip(r-4.6)surveyCV_0.2.0.9003.zip(r-4.5)
surveyCV_0.2.0.9003.tgz(r-4.6-any)surveyCV_0.2.0.9003.tgz(r-4.5-any)
surveyCV_0.2.0.9003.tar.gz(r-4.7-any)surveyCV_0.2.0.9003.tar.gz(r-4.6-any)
surveyCV_0.2.0.9003.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
surveyCV/json (API)
NEWS
| # Install 'surveyCV' in R: |
| install.packages('surveyCV', repos = c('https://colbystatsvyrsch.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/colbystatsvyrsch/surveycv/issues
- 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.
Last updated from:c14d5b5192. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 172 | ||
| source / vignettes | OK | 211 | ||
| linux-release-x86_64 | OK | 170 | ||
| macos-release-arm64 | OK | 187 | ||
| macos-oldrel-arm64 | OK | 154 | ||
| windows-devel | OK | 109 | ||
| windows-release | OK | 114 | ||
| windows-oldrel | OK | 109 | ||
| wasm-release | OK | 118 |
Exports:%>%cv.svycv.svydesigncv.svyglmfolds.svyfolds.svydesign
Dependencies:DBIlatticemagrittrMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival
surveyCV: Cross Validation Based on Survey Design
Rendered fromintro.rmdusingknitr::rmarkdownon May 28 2026.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 May 28 2026.Last update: 2022-01-11
Started: 2021-07-17
Informal tests of surveyCV using the Auto dataset
Rendered fromtest-Auto.rmdusingknitr::rmarkdownon May 28 2026.Last update: 2021-07-12
Started: 2021-07-08
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| CV for survey data | cv.svy |
| CV for 'svydesign' objects | cv.svydesign |
| CV for 'svyglm' objects | cv.svyglm |
| Creating CV folds based on the survey design | folds.svy |
| Creating CV folds based on the 'svydesign' object | folds.svydesign |
| Subset of the 2015-2017 National Survey of Family Growth (NSFG): one birth per respondent. | NSFG_data |
| Subset of the 2015-2017 National Survey of Family Growth (NSFG): all live births per respondent. | NSFG_data_everypreg |
| surveyCV: Cross Validation Based on Survey Design | surveyCV |
