View source: R/buffered_random_sampling.R
buffered_random_sampling | R Documentation |
Run the buffered random sampling algorithm.
buffered_random_sampling(
element,
stratum,
preselect_element = NULL,
visualise = FALSE,
verbose = FALSE,
pause = FALSE,
detail = 2,
tau = 0.5
)
element |
|
stratum |
|
preselect_element |
|
visualise |
|
verbose |
|
pause |
|
detail |
|
tau |
|
The function requires two data sets and returns a data frame with the result of the buffered random sampling.
Data frame listing which stratum each element is associated with.
# See vignette("buffersam") for more examples.
allocation <- buffered_random_sampling(element, stratum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.