Skip to content

surveyCV

Cross Validation Based on Survey Design

v0.2.0 · Mar 15, 2022 · GPL-2 | GPL-3

Description

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.

Downloads

CRAN

264

Last 30 days

15894th

683

Last 90 days

2.9K

Last year

Trend: +45.1% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

24

Last 90 days

101

Last year

Trend: -40% (30d vs prior 30d)

autoCRAN

2

Last 7 days

18

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies survey magrittr surveyCV

Version History

3 tracked
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.1 diff Mar 14, 2022
new 0.1.1 Jan 9, 2022