Description Usage Arguments Value
Fits a sesaonal endemic-epidemic model with underreporting using an approximative maximum likelihood scheme. The likelihood approximation is based on an approximation of the process by a second-order equivalent process with complete reporting. The reporting probability cannot be estimated from the data (in most cases these contain no information on it) and thus needs to be specified in advance.
1 2 3 4 5 6 7 8 9 10 11 12 |
observed |
a time series of counts (numeric vector) |
L |
the number of observations per period (integer; e.g. 52 for weekly data and yearly seasonality) |
q |
the assumed reporting probability |
seas_phi |
should seasonality also be accounted for in the autoregressive parameter $phi$? or only in the immigration parameter $nu$? |
include_kappa |
should the parameter $kappa$ and thus lagged versions of the conditional expectation $lambda$ be included? |
initial |
the initial value of the parameter vector passed to optim (note: the function tries different starting values in any case) |
max_lag |
in evaluation of likelihood only lags up to max_lag are taken into account |
the return object from optim
providing the maximum likelihood estimates
(mostly on the log scale).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.