calculate_allocation_existing {sgsR} | R Documentation |
Sample allocation type and count
Description
Determine how many samples to allocate within strata.
Usage
calculate_allocation_existing(
existing,
nSamp,
allocation = "prop",
weights = NULL,
metric = NULL,
force = FALSE
)
Arguments
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. |
Value
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.
Author(s)
Tristan R.H. Goodbody
References
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
See Also
Other calculate functions:
calculate_allocation()
,
calculate_coobs()
,
calculate_distance()
,
calculate_pcomp()
,
calculate_pop()
,
calculate_representation()
,
calculate_sampsize()