betabinomial | R Documentation |
Density and random generation for the Beta-binomial distribution with parameters size
, mu
, and theta
.
rbetabinom(n = 1, size, prob, theta)
dbetabinom(x, size, prob, theta, log = FALSE)
n |
integer; number of random variates to generate. |
size |
|
prob |
mean of the Beta distribution |
theta |
Beta distribution dispersion parameter |
x |
vector of non-negative integer quantiles |
log |
logical; if TRUE, return logarithm(s) of probabilities. |
A variable X
is Beta-binomially distributed if
X\sim{\mathrm{Binomial}(n,P)}
where P\sim{\mathrm{Beta}(\mu,\theta)}
.
Using the standard (a,b)
parameterization, a=\mu\,\theta
and b=(1-\mu)\,\theta
.
rbetabinom |
Returns a vector of length |
dbetabinom |
Returns a vector (of length equal to the number of columns of |
An interface for C codes using these functions is provided by the package. Visit the package homepage to view the pomp C API document.
More on implementing POMP models:
Csnippet
,
accumvars
,
basic_components
,
covariates
,
dinit_spec
,
dmeasure_spec
,
dprocess_spec
,
emeasure_spec
,
eulermultinom
,
parameter_trans()
,
pomp-package
,
pomp_constructor
,
prior_spec
,
rinit_spec
,
rmeasure_spec
,
rprocess_spec
,
skeleton_spec
,
transformations
,
userdata
,
vmeasure_spec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.