powered by
Inclusion Probabilities: Simple Random Sampling
simple_rs_probabilities(N, prob = NULL, check_inputs = TRUE)
The number of units. N must be a positive integer. (required)
prob is the probability of being sampled must be a real number between 0 and 1 inclusive, and must be length 1 or N. (optional)
logical. Defaults to TRUE.
A vector length N indicating the probability of being sampled.
# NOT RUN { probs <- simple_ra_probabilities(N = 100) table(probs) probs <- simple_ra_probabilities(N = 100, prob = 0.3) table(probs) # }
Run the code above in your browser using DataLab