RNBinom: Simulate random number from the negative binomial...

Description Usage Arguments Value

Description

Generate random integers from the negative binomial distribution when possible within integer overflow constraints. Otherwise, approximate with the normal distribution.

Usage

1
RNBinom(n, size, prob, mu)

Arguments

n

number of observations. If length(n) > 1, the length is taken to be the number required.

size

number of trials (zero or more). When size is a vector, the number of trials for each observation.

prob

probability of success on each trial. When prob is a vector, each entry refers to the probability of success for trials associated with the corresponding observation.

mu

alternative parametrization via mean: see 'Details' in documentation for rnbinom().

Value

Random numbers from the negative binomial distribution, or its normal approximation. The function will return a numeric value, rather than an integer.


google/amss documentation built on May 20, 2019, 5:05 p.m.