Designing and Weighting Survey Samples
Overview
Functions and datasets to support Valliant, Dever, and Kreuter (2018), doi:10.1007/978-3-319-93632-1, "Practical Tools for Designing and Weighting Survey Samples". Contains functions for sample size calculation for survey samples using stratified or clustered one-, two-, and three-stage sample designs, and single-stage audit sample designs. Functions are included that will group geographic units accounting for distances apart and measures of size. Other functions compute variance components for multistage designs, sample sizes in two-phase designs, and a stopping rule for ending data collection. A number of example data sets are included.
- pclass was revised to account for the possibility that the estimated propensities have no meaningful variation.
In that case a warning is printed and a single adjustment class is returned with a single estimated propensity and a warning is printed.
A parameter, rng.preds, was added to set a cutoff for determining when a single adjustment class is to be returned.
A seed parameter was added so that the same set of weights can be reproduced in different runs.(changes suggested by Juan Pablo Ferreira)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 61
- Examples that run
- 97%59 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 80%
- Creating Geography-Based PSUs with as Similarly-Sized MOS as Possible HTML
- Deciding When to Stop: The SampStop function HTML
- Design Effects and Effective Sample Size HTML
- Sample Size Calculation in Single-stage Sampling HTML
- Selection of Appropriate PracTools Sample Size Function HTML
- Variance Component Estimation in Multistage Sampling HTML
Downloads
Dependencies
Installing PracTools adds 37 packages (21 with compiled code, 41 MB of source tarballs). Heaviest: sf 9.3 MB, ggplot2 6.0 MB, usmapdata 5.4 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.7.6Latest
- RR 4.6.0 released · 2026-04-24
- 1.7.52026-01-17 · diff ↗
- 1.72025-09-29 · diff ↗
- 1.6.12025-05-11 · diff ↗
- 1.6
- RR 4.5.0 released · 2025-04-11
- 1.5
- RR 4.4.0 released · 2024-04-24
- 1.4.3
- unarchivedReturned to CRAN2023-12-05
- 1.4.22023-12-05 · diff ↗
- archivedRemoved from CRAN2023-11-23issues were not corrected in time
- 1.4.12023-11-09 · diff ↗
- 1.4
- RR 4.3.0 released · 2023-04-21
Show 33 earlier eventsHide 33 earlier events
- 1.3
- 1.2.8
- 1.2.72022-06-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.2.62022-03-20 · diff ↗
- 1.2.52022-01-18 · diff ↗
- 1.2.4
- 1.2.32021-11-03 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.2.22020-08-04 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.2.12019-10-02 · diff ↗
- 1.22019-09-07 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.12018-10-21 · diff ↗
- 0.92018-06-13 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.82018-01-05 · diff ↗
- 0.72017-11-24 · diff ↗
- 0.62017-07-26 · diff ↗
- 0.5
- RR 3.4.0 released · 2017-04-21
- 0.42016-10-23 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.32015-11-16 · diff ↗
- 0.22015-06-01 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 0.1
- 0.0-2
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- 0.0-12013-02-04
- RR 2.15.0 released · 2012-03-30
Package metadata
- First published
- 2013-02-04
- Total releases
- 32 / 13 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 1.9 MB / 13 files
- Download size
- 2.5 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PracTools")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.