A function that returns the next unit in the sample. It take a single
argument giving the sentinel value to indicate that there are no units
left to sample (default NULL).
Arguments
x
A positive and finite numeric vector of sizes for units in the
population (e.g., revenue for drawing a sample of businesses).
n
A positive integer giving the initial sample size for the iterator.
prn
A numeric vector of permanent random numbers for units in the
population, distributed uniform between 0 and 1. The default does not use
permanent random numbers, instead generating a random vector when the
function is called.
alpha
A number between 0 and 1. Units with
inclusion probabilities greater than or equal to 1 - alpha are set to 1.
The default is slightly larger than 0.
cutoff
A numeric cutoff. Units with x >= cutoff get
an inclusion probability of 1. The default does not apply a cutoff.