sitepickR: Two-Level Sample Selection with Optimal Site Replacement

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) <> and described in Tillé (2011) <>. 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 <>. To implement statistical matching, 'sitepickR' uses the 'MatchIt' R package <>.

Version: 0.0.1
Depends: R (≥ 2.10)
Imports: MatchIt, sampling, dplyr, ggplot2, reshape2, data.table, stats, stringr, tidyr, magrittr, tidyselect, scales
Suggests: knitr, rmarkdown, devtools
Published: 2022-12-05
Author: Elena Badillo-Goicoechea [aut, cre], Robert Olsen [aut], Elizabeth Stuart [aut]
Maintainer: Elena Badillo-Goicoechea <egoicoe1 at>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: README
CRAN checks: sitepickR results


Reference manual: sitepickR.pdf
Vignettes: sitepickR-demo


Package source: sitepickR_0.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): sitepickR_0.0.1.tgz, r-oldrel (arm64): sitepickR_0.0.1.tgz, r-release (x86_64): sitepickR_0.0.1.tgz, r-oldrel (x86_64): sitepickR_0.0.1.tgz


Please use the canonical form to link to this page.