DiscreteVariate: Discrete Variate Constructors

Description Usage Arguments Value See Also Examples

View source: R/response.R

Description

Create a variate of binomial counts, discrete numbers, negative binomial counts, or Poisson counts.

Usage

1
2
3
4
5
6
7

Arguments

x

numeric vector.

size

number or numeric vector of binomial trials.

min, max

minimum and maximum bounds for discrete numbers.

Value

BinomialVariate object class, DiscreteVariate that inherits from numeric, or NegBinomialVariate or PoissonVariate that inherit from DiscreteVariate.

See Also

role_binom

Examples

1
2
BinomialVariate(rbinom(25, 10, 0.5), size = 10)
PoissonVariate(rpois(25, 10))

MachineShop documentation built on June 18, 2021, 9:06 a.m.