Description Usage Arguments Details Value Author(s) See Also Examples
Allocate sample among several strata, using proportional allocation. Inputs population file and total sample size. Outputs sample sizes for each stratum
1 | Alloc(popfile, ntotal)
|
popfile |
dataframe containing population data - as a minimum there must be columns named 'PID' (plot identifier), 'Strata' and 'plot_type'. |
ntotal |
total sample size - required number of reference plots for all strata combined. |
Performs a proportional allocation, by calculating the required sample size for each stratum (i) using the formula n_i = n * N_i / N, where n is the sample size (number of reference plots) and N is the number of target plots.
A vector of sample sizes, one for each stratum in the population file.
G. Melville
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.