censored.deviation: Deviation between theorietical incidence and observed data.

View source: R/censored.deviation.R

censored.deviationR Documentation

Deviation between theorietical incidence and observed data.

Description

When first records of incidence are unavailable, tries to impute censored cases to rebuild longer epidemic vector.

Usage

censored.deviation(optim.vect, epid, R0, GT)

Arguments

optim.vect

Vector of two elements ⁠c(multiplicative factor, log(highest imputed data))⁠ corresponding to initial values.

epid

Original epidemic vector, output of check.incid().

R0

Assumed R0 value for the original epidemic vector.

GT

Generation time distribution to be used for computations.

Details

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.

Value

The deviation between E(N_{t}) and N_{t} : sum((E(Nt) - Nt)^2).

Author(s)

Pierre-Yves Boelle, Thomas Obadia


R0 documentation built on Sept. 26, 2023, 5:10 p.m.

Related to censored.deviation in R0...