sample_pair: Sample Pairs of Distinct Indices

sample_pairR Documentation

Sample Pairs of Distinct Indices

Description

Sample Pairs of Distinct Indices

Usage

sample_pair(n, prob, verbose = FALSE)

Arguments

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?

Value

A list with two elements, source and sink, each of length n, corresponding to the sampled pairs indices

See Also

Other heterogeneity: het.hist(), het.population(), het.run(), sample_until()


ICI3D/ici3d-pkg documentation built on July 2, 2024, 12:35 p.m.