Learn R Programming

R0 (version 1.2-4)

est.R0.EG: Estimate R from exponential growth rate

Description

Estimate R from exponential growth rate.

Usage

est.R0.EG(epid, GT, t = NULL, begin = NULL, end = NULL, date.first.obs = NULL, 
    time.step = 1, reg.met = "poisson", checked = FALSE, ...)

Arguments

epid
object containing epidemic curve data. see Details.
GT
generation time distribution
t
Vector of dates at which incidence was calculated
begin
At what time estimation begins
end
Time at which to end computation
date.first.obs
Optional date of first observation, if t not specified
time.step
Optional. If date of first observation is specified, number of day between each incidence observation
reg.met
Regression method used. Default is "poisson" (for GLM), but can be forced to "linear".
checked
Internal flag used to check whether integrity checks were ran or not.
...
parameters passed to inner functions

Value

  • A list with components:
  • RThe estimate of the reproduction ratio.
  • conf.intThe 95% confidence interval for the R estimate.
  • rExponential growth rate of the epidemic.
  • conf.int.rConfidence interval of the exponential growth rate of the epidemic.
  • RsquaredThe deviance R-squared measure for the considered dates and model.
  • epidobject containing epidemic curve data. see Details.
  • GTgeneration time distribution
  • data.nameName of the data used in the fit.
  • beginAt what time estimation begins
  • begin.nbThe number of the first day used in the fit.
  • endTime at which to end computation
  • end.nbThe number of the las day used for the fit.
  • fitMethod used for fitting.
  • predPrediction on the period used for the fit.
  • methodMethod for estimation.
  • method.codeInternal code used to designate method.

Details

For internal use. Called by est.R0. method "poisson" uses Poisson regression of incidence. method "linear" uses linear regression of log(incidence) CI is computed from the 1/M(-r) formula using bounds on r from the Poisson regression.

References

Wallinga, J., and M. Lipsitch. "How Generation Intervals Shape the Relationship Between Growth Rates and Reproductive Numbers." Proceedings of the Royal Society B: Biological Sciences 274, no. 1609 (2007): 599.

Examples

Run this code
#Loading package
library(R0)

## Data is taken from the paper by Nishiura for key transmission parameters of an institutional
## outbreak during 1918 influenza pandemic in Germany)

data(Germany.1918)
mGT<-generation.time("gamma", c(3, 1.5))

est.R0.EG(Germany.1918, mGT, begin=1, end=27)
## Reproduction number estimate using  Exponential Growth 
## R :  1.525895[ 1.494984 , 1.557779 ]}

Run the code above in your browser using DataLab