powered by
Create a variate of binomial counts, discrete numbers, negative binomial counts, or Poisson counts.
BinomialVariate(x = integer(), size = integer())DiscreteVariate(x = integer(), min = -Inf, max = Inf)NegBinomialVariate(x = integer())PoissonVariate(x = integer())
DiscreteVariate(x = integer(), min = -Inf, max = Inf)
NegBinomialVariate(x = integer())
PoissonVariate(x = integer())
BinomialVariate object class, DiscreteVariate that inherits from numeric, or NegBinomialVariate or PoissonVariate that inherit from DiscreteVariate.
BinomialVariate
DiscreteVariate
numeric
NegBinomialVariate
PoissonVariate
numeric vector.
number or numeric vector of binomial trials.
minimum and maximum bounds for discrete numbers.
role_binom
BinomialVariate(rbinom(25, 10, 0.5), size = 10) PoissonVariate(rpois(25, 10))
Run the code above in your browser using DataLab