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.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')) |
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 2 years agofrom:c14d5b5192. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 12 2024 |
R-4.5-win | OK | Nov 12 2024 |
R-4.5-linux | OK | Nov 12 2024 |
R-4.4-win | OK | Nov 12 2024 |
R-4.4-mac | OK | Nov 12 2024 |
R-4.3-win | OK | Nov 12 2024 |
R-4.3-mac | OK | Nov 12 2024 |
Exports:%>%cv.svycv.svydesigncv.svyglmfolds.svyfolds.svydesign
Dependencies:DBIlatticemagrittrMatrixminqamitoolsnumDerivRcppRcppArmadillosurveysurvival
surveyCV: Cross Validation Based on Survey Design
Rendered fromintro.rmd
usingknitr::rmarkdown
on Nov 12 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.rmd
usingknitr::rmarkdown
on Nov 12 2024.Last update: 2022-01-11
Started: 2021-07-17
Informal tests of surveyCV using the Auto dataset
Rendered fromtest-Auto.rmd
usingknitr::rmarkdown
on Nov 12 2024.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 |