View source: R/calculate_allocation_existing.R
calculate_allocation_existing | R Documentation |
Determine how many samples to allocate within strata.
calculate_allocation_existing(
existing,
nSamp,
allocation = "prop",
weights = NULL,
metric = NULL,
force = FALSE
)
existing |
sf 'POINT' or data.frame. Existing plot network. |
nSamp |
Numeric. Number of desired samples. |
allocation |
Character. Allocation algorithm to be used. Either |
weights |
Numeric. Only applicable when |
force |
Logical. |
Returns a data.frame of:
strata - Strata ID.
total - Number of samples to be allocated. Values correspond to under representation (samples needed; positive value) or over representation
(too many samples; negative value) based on the nSamp
provided.
need - Required samples per strata based on allocation method. Rounded.
Tristan R.H. Goodbody
Gregoire, T.G., & Valentine, H.T. (2007). Sampling Strategies for Natural Resources and the Environment (1st ed.). Chapman and Hall/CRC. https://doi.org/10.1201/9780203498880
Other calculate functions:
calculate_allocation()
,
calculate_coobs()
,
calculate_distance()
,
calculate_pcomp()
,
calculate_pop()
,
calculate_representation()
,
calculate_sampsize()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.