hhh4_internals | R Documentation |
hhh4
Models
The functions documented here are considered internal,
i.e., not intended to be called by the user. They are used by
add-on packages dealing with hhh4
models.
meanHHH(theta, model, subset = model$subset, total.only = FALSE)
sizeHHH(theta, model, subset = model$subset)
decompose.hhh4(x, coefs = x$coefficients, ...)
theta , coefs |
numeric vector of untransformed model parameters,
i.e., the |
model |
the model terms as returned by the
|
subset |
vector of time points for which to compute the component
means. Defaults to the fitted time range. For |
total.only |
logical. Should only the total mean (epidemic +
endemic) be returned in a |
x |
a fitted |
... |
unused. |
meanHHH
computes the components of the mean returned in
length(subset)
x nUnit matrices.
sizeHHH
computes the model dispersion in dnbinom
(mu
, size
) parametrization (it returns NULL
in
the Poisson case).
decompose.hhh4
decomposes the fitted mean (extracted via
meanHHH
) in an array with dimensions (t, i, j)
, where the
first j
index is "endemic"
.
Michaela Paul and Sebastian Meyer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.