Learn R Programming

R0 (version 1.2-10)

censored.deviation: Impute censored cases to rebuild longer epidemic vector

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)

Value

The deviation between sum((E(Nt)-Nt)^2)

Arguments

optim.vect

Vector of two elements (multiplicative factor, log(highest imputed data) correspondig 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

Author

Pierre-Yves Boelle, Thomas Obadia

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