Learn R Programming

sSeq (version 1.10.0)

rnbinomMV: Randomly Generate Negative Binomial Variable with parameters mean and variance.

Description

This function is based on the re-parameterized Negative Binomial distribution to generate random observations.

Usage

rnbinomMV(n, mu, v)

Arguments

n
The number of values that will be randomly generated.
mu
The expectation of the Negative Binomial distribution.
v
The variance of the Negative Binomial distribution.

Examples

Run this code
x <- rnbinomMV(50, 10, 15)
hist(x)

Run the code above in your browser using DataLab