Description Usage Arguments Value
Fits a time-homogeneous 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 |
observed |
a time series of counts (numeric vector) |
q |
the assumed reporting probability |
initial |
the initial value of the parameter vector passed to optim (note: the function re-runs optimization several times) |
max_lag |
in evaluation of (conditional) likelihood only lags up to |
a named list containing the following elements:
parameter estimates on the original scale (codepar) and associated
standard errors (se
), obtained via the delta method
parameter estimates on the log scale (as used in the optimization; par_log
),
associated standard errors (se_log
) and inverse Fisher information matrix (Sigma_log
)
the return object of the call to optim
(opt
)
the data (observed
), reporting probability (q
) and other settings settings
used in the call to fit_hhh4u_homog
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.