Description
Exact Optimal Allocation Algorithms for Stratified Sampling.
Description
Implements several exact methods for allocating optimal sample sizes when designing stratified samples. These methods are discussed in Wright (2012) <doi:10.1080/00031305.2012.733679> and Wright (2017) <doi:10.1016/j.spl.2017.04.026>.
README.md
Overview
This package implements several methods of allocation into strata for stratified sampling. In particular, they provide an alternative to Neyman's classical method to minimize variance which avoid rounding.
Installation
To install from Github, first obtain the devtools and Rmpfr packages. The latter is used for high precision arithmetic. Then run the following.
devtools::install_github("andrewraim/allocation")