View source: R/censored.deviation.R
censored.deviation | R Documentation |
When first records of incidence are unavailable, tries to impute censored cases to rebuild longer epidemic vector.
censored.deviation(optim.vect, epid, R0, GT)
optim.vect |
Vector of two elements |
epid |
Original epidemic vector, output of |
R0 |
Assumed R0 value for the original epidemic vector. |
GT |
Generation time distribution to be used for computations. |
For internal use. Called by impute.incid()
.
This function is not intended for stand-alone use. It computes the difference between theoretical incidence and observed epidemics, for a given vector of initial values. To find the find best-fitting incidence values, this same vector must be optimized, to minimize the value returned by SCE.
The deviation between E(N_{t})
and N_{t}
: sum((E(Nt) - Nt)^2).
Pierre-Yves Boelle, Thomas Obadia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.