Each unit is independently selected with the same probability p. Sample size is random.
bernoulli(p, N)An integer vector of selected indices (1 to N).
Length is random with expected value N*p.
Each unit is selected independently with probability p.
Properties:
Random sample size with expectation Np and variance Np*(1-p)
Equal inclusion probabilities: \(\pi = p\)
Very fast: O(N) time
srs() for fixed sample size,
up_poisson() for Bernoulli sampling with unequal probabilities