.rbinom_size {epichains} | R Documentation |
Samples the size parameter from the binomial distribution with fixed x (number of successes) and p (success probability)
.rbinom_size(n, x, prob)
n |
The number of samples to generate. Must be a positive integer. |
x |
The number of successes. Must be a positive integer. |
prob |
The probability of success. A numeric between 0 and 1. |
A numeric vector of the sampled sizes.
Sebastian Funk