Description Usage Arguments Value
Based on data from sample and population, this function returns the optimum allocation of elements. Users can input strata vectors from sample and from population, but the last is not required. The output is a vector.
1 | neymanAllocation(n, strat.vector = NULL, sample.vector, sd.vector)
|
n |
The size of sample. |
strat.vector |
The vector of strata from population data. |
sample.vector |
The vector of strata from sample data. Required. |
sd.vector |
The data sample vector from which the standards deviations will be calculated. |
Vector with the same length as the unique labels of strata containing the size of each strata for sampling.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.