| sample_pair | R Documentation |
Sample Pairs of Distinct Indices
sample_pair(n, prob, verbose = FALSE)
n |
positive integer: number of pairs to sample |
prob |
numeric vector: the population weights for sampling each index; if length(prob) == 1, then treated as the population size and all indices equally weighted |
verbose |
Print progress messages? |
A list with two elements, source and sink, each of length n,
corresponding to the sampled pairs indices
Other heterogeneity:
het.hist(),
het.population(),
het.run(),
sample_until()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.