PracTools1.5 package

Designing and Weighting Survey Samples

GeoDistMOS

Split geographic PSUs based on a measure of size threshold

BW2stagePPS

Relvariance components for 2-stage sample

BW2stagePPSe

Estimated relvariance components for 2-stage sample

BW2stageSRS

Relvariance components for 2-stage sample

BW3stagePPS

Relvariance components for 3-stage sample

BW3stagePPSe

Estimated relvariance components for 3-stage sample

clusOpt2

Compute optimal sample sizes for a two-stage sample

clusOpt2fixedPSU

Optimal number of sample elements per PSU in a two-stage sample when t...

clusOpt3

Compute optimal sample sizes for a three-stage sample

clusOpt3fixedPSU

Compute optimal number of sample secondary sampling units (SSUs) and e...

CompMOS

Compute a composite measure of size for domain-based two-stage samplin...

CVcalc2

Coefficient of variation of an estimated total in a 2-stage sample

CVcalc3

Coefficient of variation of an estimated total in a 3-stage sample

deff

Design effects of various types

deffCR

Chen-Rust design effect

deffH

Henry design effect for pps sampling and GREG estimation of totals

deffK

Kish design effect

deffS

Spencer design effect for an estimated total from a pps sample

dub

Sample sizes for a double sampling design

gamEst

Estimate variance model parameter γ\gamma

gammaFit

Iteratively estimate variance model parameter γ\gamma

GeoDistPSU

Form PSUs based on geographic distances

GeoMinMOS

Check geographic PSUs to determine whether any are less than minimum m...

HMT

Generate an HMT population

nAuditAttr

Sample sizes for an attribute sample in an audit

nAuditMUS

Sample sizes for a Monetary Unit Sample in an audit

nCont

Compute a simple random sample size for an estimated mean

nPPS

Calculate the sample size for a probability proportional to size (PPS)...

nContMoe

Compute a simple random sample size for an estimated mean of a continu...

nContOpt

Compute the sample size required to estimate the mean of a continuous ...

nDep2sam

Simple random sample size for difference in means

nDomain

Compute a simple random sample size for an estimated mean or total for...

nEdge

Compute the total sample size for a stratified, simple random sample b...

nEdgeSRS

Compute the total sample size for a simple random sample based on an E...

nLogOdds

Calculate simple random sample size for estimating a proportion

nProp

Compute simple random sample size for estimating a proportion

nProp2sam

Simple random sample size for difference in proportions

nPropMoe

Simple random sample size for a proportion based on margin of error

NRadjClass

Class-based nonresponse adjustments

NRFUopt

Sample sizes for a nonresponse follow-up study

nWilson

Calculate a simple random sample size for estimating a proportion

pclass

Form nonresponse adjustment classes based on propensity scores

quad_roots

Compute the roots of a quadratic equation

strAlloc

Allocate a sample to strata

unitVar

Compute the unit (population) variance for a variable

wtd.moments

Compute moments of a variable from either a population or sample

wtdvar

Compute weighted variance

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 and sample sizes in two-phase designs. A number of example data sets are included.

  • Maintainer: Richard Valliant
  • License: GPL-3
  • Last published: 2024-06-24