dot-rbinom_size function

Samples size (the number of trials) of a binomial distribution

Samples size (the number of trials) of a binomial distribution

Samples the size parameter from the binomial distribution with fixed x (number of successes) and p (success probability)

.rbinom_size(n, x, prob)

Arguments

  • 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.

Returns

A numeric vector of the sampled sizes.

Author(s)

Sebastian Funk

  • Maintainer: James M. Azam
  • License: MIT + file LICENSE
  • Last published: 2024-10-14

Downloads (last 30 days):