BINOMIAL {convdistr}R Documentation

Factory for a BINOMIAL distribution object

Description

Returns a BINOMIAL distribution object that produce random numbers from a binomial distribution using the rbinom function

Usage

new_BINOMIAL(p_size, p_prob, p_dimnames = "rvar")

Arguments

p_size

integer that represent the number of trials

p_prob

probability of success

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, BINOMIAL

Author(s)

John J. Aponte

Examples

myDistr <- new_BINOMIAL(1000,0.3)
myDistr$rfunc(10)

[Package convdistr version 1.6.1 Index]