sitepickR
0.0.1Two-Level Sample Selection with Optimal Site Replacement
Overview
Carries out a two-level sample selection where the possibility of an initially selected site not wanting to participate is anticipated, and the site is optimally replaced. The procedure aims to reduce bias (and/or loss of external validity) with respect to the target population. In selecting units and sub-units, 'sitepickR' uses the cube method developed by 'Deville & Tillé', (2004) http://www.math.helsinki.fi/msm/banocoss/Deville_Tille_2004.pdf and described in Tillé (2011) https://www150.statcan.gc.ca/n1/en/pub/12-001-x/2011002/article/11609-eng.pdf?st=5-sx8Q8n. The cube method is a probability sampling method that is designed to satisfy criteria for balance between the sample and the population. Recent research has shown that this method performs well in simulations for studies of educational programs (see Fay & Olsen (2021, under review). To implement the cube method, 'sitepickR' uses the sampling R package https://cran.r-project.org/package=sampling. To implement statistical matching, 'sitepickR' uses the 'MatchIt' R package https://cran.r-project.org/package=MatchIt.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE r-oldrel-macos-arm64
- NOTE r-oldrel-macos-x86_64
- NOTE r-oldrel-windows-x86_64
- NOTE r-patched-linux-x86_64
- NOTE r-release-linux-x86_64
- NOTE r-release-macos-arm64
- NOTE r-release-macos-x86_64
- NOTE r-release-windows-x86_64
- NOTE2026-06-090 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-070 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-04-100 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-090 OK · 13 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-100 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 96%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 1.0 median / 10 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
21 8 exported
Complexity
3 avg / 10 max
Call network
21 nodes / 12 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| rawCCD | data.frame | 1,890 × 12 | – |
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.0.1Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2022-12-05
- Total releases
- 1 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 84 KB / 1 file
- Download size
- 374 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet