View source: R/internal_functions.R
rod | R Documentation |
rpoisod
and
rbinomod
functions.Internal function to generate random numbers following over-dispersed
Bernoulli or Poisson distribution. It wraps rpoisod
and
rbinomod
functions.
rod(n, mu, d, type = c("binomial", "quasibinomial", "poisson", "quasipoisson"))
n |
integer. Number of observations. |
mu |
numeric. Probability of success on each trial or mean, for (quasi)binomial and (quasi)Poisson, respectively. |
d |
numeric. Dispersion parameter. |
type |
character indicating the distribution. |
a vector with the simulated sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.