fit.epid | R Documentation |
Computes the Poisson log-likelihood of an observed epidemic, compared to the expected incidence values for a given R and generation time distirbution.
fit.epid(log.R, epid, GT, import, pred = FALSE, offset = 0)
log.R |
The log-reproduction ratio. |
epid |
An epidemic curve, in the sense of passing |
GT |
Generation time distribution from |
import |
Vector of imported cases |
pred |
Boolean. By default ( |
offset |
Offset value for the log-likelihood (used to calculate confidence intervals). |
For internal use. Called from est.R0.ML()
.
Computes and returns the Poisson log-likelihood of an observed epidemic, conditional on a given value of R and a generation time distribution.
The Poisson log-likelihood of the observed epidemic passed as argument epid
,
or the Poisson-predicted incidence series given R and GT values.
This function is also used in fit.epid.optim()
, which is a wrapper for the
joint optimization routine to determine the best-fitting R and GT values when
the est.R0.ML()
method is called and asked to jointly estimate reproduction
ratios and generation time distirbution.
Pierre-Yves Boelle, Thomas Obadia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.