Learn R Programming

simsem (version 0.2-8)

simNbinom: Create random negative binomial distribution object

Description

Create random negative binomial distribution object. Random negative binomial distribution object will save the target number of successful trials and the probability of successes parameters.

Usage

simNbinom(size, prob)

Arguments

size
The target number of successful trials
prob
The probability of successes

Value

  • SimNbinomRandom Negative Binomial Distribution object (SimNbinom) that save the specified parameters

See Also

  • VirtualDistfor all distribution objects.

Examples

Run this code
nbinom <- simNbinom(5, 0.25)
    run(nbinom)
	summary(nbinom)

Run the code above in your browser using DataLab