Description Usage Arguments Value Note Examples
View source: R/built_in_distributions.R
Generates a set of Negative Binomial distributed values. Only two of r
,
prob
and mu
can be provided.
1 2 3 4 5 6 7 8 |
r |
number of failure trials until stopping, strictly positive |
prob |
vector of probabilities of success on each trial, between 0 & 1 |
... |
Unused |
mu |
vector of means |
n |
number of observations to generate. The |
.seed |
One of the following:
To extract the random seed from a previously generated set of
values, use |
A numeric vector of length n
It is important to note that this is the number of failures,
and not the number of successes, as in rnbinom()
, so
rnbinom(prob = x,...)
is equivalent to r_nbinom(prob=1-x,...)
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.