Designing and Weighting Survey Samples
Split geographic PSUs based on a measure of size threshold
Relvariance components for 2-stage sample
Estimated relvariance components for 2-stage sample
Relvariance components for 2-stage sample
Relvariance components for 3-stage sample
Estimated relvariance components for 3-stage sample
Compute optimal sample sizes for a two-stage sample
Optimal number of sample elements per PSU in a two-stage sample when t...
Compute optimal sample sizes for a three-stage sample
Compute optimal number of sample secondary sampling units (SSUs) and e...
Compute a composite measure of size for domain-based two-stage samplin...
Coefficient of variation of an estimated total in a 2-stage sample
Coefficient of variation of an estimated total in a 3-stage sample
Design effects of various types
Chen-Rust design effect
Henry design effect for pps sampling and GREG estimation of totals
Kish design effect
Spencer design effect for an estimated total from a pps sample
Sample sizes for a double sampling design
Estimate variance model parameter
Iteratively estimate variance model parameter
Form PSUs based on geographic distances
Check geographic PSUs to determine whether any are less than minimum m...
Generate an HMT population
Sample sizes for an attribute sample in an audit
Sample sizes for a Monetary Unit Sample in an audit
Compute a simple random sample size for an estimated mean
Calculate the sample size for a probability proportional to size (PPS)...
Compute a simple random sample size for an estimated mean of a continu...
Compute the sample size required to estimate the mean of a continuous ...
Simple random sample size for difference in means
Compute a simple random sample size for an estimated mean or total for...
Compute the total sample size for a stratified, simple random sample b...
Compute the total sample size for a simple random sample based on an E...
Calculate simple random sample size for estimating a proportion
Compute simple random sample size for estimating a proportion
Simple random sample size for difference in proportions
Simple random sample size for a proportion based on margin of error
Class-based nonresponse adjustments
Sample sizes for a nonresponse follow-up study
Calculate a simple random sample size for estimating a proportion
Form nonresponse adjustment classes based on propensity scores
Compute the roots of a quadratic equation
Allocate a sample to strata
Compute the unit (population) variance for a variable
Compute moments of a variable from either a population or sample
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.