Description Usage Arguments Value Author(s) References
These functions are simple wrappers around existing random number generators in R to provide stochastic count data for simulated species.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
n |
the number of random draws, equal to number of species times the number of gradient locations. |
mu |
the mean or expectation of the distribution. For |
alpha |
numeric; dispersion parameter for the negative binomial distribution. May be a vector of length |
size |
numeric; binomial denominator, the total number of individuals counted for example |
theta |
numeric; a positive inverse overdispersion parameter for the Beta-Binomial distribution. Low values give high overdispersion. The variance is |
zprobs |
numeric; zero-inflation parameter giving the proportion of extraneous zeros. Must be in range 0 to 1. |
a vector of random draws from the stated distribution.
Gavin L. Simpson
Bolker, B.M. (2008) Ecological Models and Data in R. Princeton University Press.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.