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-any)surveyCV_0.2.0.9003.zip(r-4.6-any)surveyCV_0.2.0.9003.zip(r-4.5-any)
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✨
DESCRIPTION |NEWS
card.svg |card.png
surveyCV/json (API)
| # 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 | OK | 151 | ||
| source / vignettes | OK | 217 | ||
| linux-release | OK | 219 | ||
| macos-release | OK | 130 | ||
| macos-oldrel | OK | 103 | ||
| windows-devel | OK | 104 | ||
| windows-release | OK | 110 | ||
| windows-oldrel | OK | 122 | ||
| wasm-release | OK | 102 |
Exports:%>%cv.svycv.svydesigncv.svyglmfolds.svyfolds.svydesign
Dependencies:DBIlatticemagrittrMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival
Last update: 2022-03-15
Started: 2021-04-13
Last update: 2022-01-11
Started: 2021-07-17
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 |
