Learn R Programming

surveillance (version 1.5-4)

R0: Computes basic reproduction numbers from fitted models

Description

The S3 generic function R0 defined in package surveillance is intended to compute basic reproduction numbers from fitted epidemic models. The package currently defines a method for the "twinstim" class, which computes mean numbers of infections caused by infected individuals depending on the event type and marks attached to the individual, which contribute to the infection pressure in the epidemic predictor of that class. There is also a method for simulated epidemics (internally just a wrapper for the "twinstim"-method).

Usage

R0(object, ...)

## S3 method for class 'twinstim': R0(object, newevents, trimmed = TRUE, ...) ## S3 method for class 'simEpidataCS': R0(object, trimmed = TRUE, ...)

Arguments

object
A fitted epidemic model object for which an R0 method exists.
newevents
an optional data.frame of events for which the basic reproduction numbers should be calculated. If omitted, it is calculated for the original events from the fit. In this case, if trimmed = TRUE (the default), the r
trimmed
logical indicating if the individual reproduction numbers should be calculated by integrating the epidemic intensities over the observation period and region only (trimmed = TRUE) or over the whole time-space domain R+ x R^2 (
...
additional arguments passed to methods. Currently unused for the twinstim method.

Value

  • numeric vector of estimated basic reproduction numbers from the fitted model object corresponding to the rows of newevents (if supplied) or the original fitted events including events of the prehistory.

encoding

latin1

Details

For the "twinstim" class, the individual-specific mean number $\mu_j$ of infections caused by individual (event) $j$ inside its theoretical (untrimmed) spatio-temporal range of interaction given by its eps.t ($\epsilon$) and eps.s ($\delta$) values is defined as follows (cf. Meyer et al, 2012): $$\mu_j = e^{\eta_j} \cdot \int_0^\epsilon g(t) dt \cdot \int_{b(\bold{0},\delta)} f(\bold{s}) d\bold{s} .$$ Here, $b(\bold{0},\delta)$ denotes the disc centred at (0,0)' with radius $\delta$, $\eta_j$ is the epidemic linear predictor, $g(t)$ is the temporal interaction function, and $f(\bold{s})$ is the spatial interaction function. Alternatively, the trimmed (observed) mean reproduction numbers are obtain by integrating over the observed infectious domains of the individuals, i.e. integrate $f$ over the intersection of the influence region with the observation region W (i.e. over ${ W \cap b(\bold{s}_j,\delta) } - \bold{s}_j$) and $g$ over the intersection of the observed infectious period with the observation period $(t_0;T]$ (i.e. over $(0; \min(T-t_j,\epsilon)]$).

(Numerical) Integration is performed exactly as during the fitting of object, for instance object$control.siaf is queried if necessary.

References

Meyer, S., Elias, J. and H{oe}hle, M. (2012): A space-time conditional intensity model for invasive meningococcal disease occurrence. Biometrics, 68, 607-616. DOI-Link: http://dx.doi.org/10.1111/j.1541-0420.2011.01684.x

Examples

Run this code
# load the 'imdepi' data and a model fit
data(imdepi)
data(imdepifit)

R0s <- R0(imdepifit)
tapply(R0s, imdepi$events@data[names(R0s), "type"], summary)

R0(imdepifit, newevents=marks(imdepi)[1,], trimmed=FALSE)

Run the code above in your browser using DataLab