View source: R/internal_functions.R
rbinomod | R Documentation |
Internal function to generate random numbers following over-dispersed Bernoulli distribution, based in the BetaBinomial distribution. It currently does not work and standard Bernoulli distribution is actually used instead.
rbinomod(n, prob, d = 1)
n |
integer. Number of observations. |
prob |
numeric. Probability of success on each trial. |
d |
numeric. Dispersion parameter. |
a vector with the simulated sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.