est.R0.AR | R Documentation |
Estimate basic reproduction number R0 from Attack Rate (AR) of an epidemic.
est.R0.AR(
AR = NULL,
incid = NULL,
pop.size = NULL,
S0 = 1,
checked = FALSE,
...
)
AR |
Attack rate as a percentage from total population. |
incid |
Sum of incident cases, possibly in the form of a vector of counts. |
pop.size |
Population size in which the incident cases were observed. |
S0 |
Initial proportion of the population considered susceptible. |
checked |
Internal flag used to check whether integrity checks were ran or not. |
... |
Parameters passed to inner functions. |
For internal use. Called by estimate.R()
.
In the simple SIR model, the relation between R0 and the Attack Rate is in the
form R0 = -ln((1-AR)/S0) / (AR - (1-S0))
. If the population size is provided,
the variance of R0 is estimated using the delta method. The hypothesis are that
of homogeneous mixing, no more transmission (epidemic ended), no change in
transmission or interventions during the epidemic. This estimate may be correct
in closed populations, and may be less valid in other cases.
The correction for incomplete susceptibility is based on the SIR model equations.
A 95% confidence interval is computed for the attack rate considering the total
population size (CI(AR) = AR +/- 1.96*sqrt(AR*(1-AR)/n)
), and so the
confidence interval for the reproduction number is computed with these extreme values.
A list with components:
epid |
The vector of incidence, after being correctly formated by |
R |
The estimate of the reproduction ratio. |
conf.int |
The 95% confidence interval for the R estimate. |
AR |
Original attack rate. |
begin.nb |
First date of incidence record. Used only by |
end.nb |
Last date of incidence record. Used only by |
method |
Method used for the estimation. |
method.code |
Internal code used to designate method. |
This is the implementation of the formula by Dietz (1993).
Pierre-Yves Boelle, Thomas Obadia
Dietz, K. "The Estimation of the Basic Reproduction Number for Infectious Diseases." Statistical Methods in Medical Research 2, no. 1 (March 1, 1993): 23-41.
#Loading package
library(R0)
## Woodall reported an attack rate of 0.31 in a population of 1732 during
## the 1957 H2N2 influenza pandemic ('Age and Asian Influenza, 1957', BMJ, 1958)
est.R0.AR(pop.size=1732, AR=0.31)
# Reproduction number estimate using Attack Rate method
# R : 1.19698[ 1.179606 , 1.215077 ]
est.R0.AR(AR=0.31)
# Reproduction number estimate using Attack Rate method.
# R : 1.19698
est.R0.AR(pop.size=1732, incid=31)
# Reproduction number estimate using Attack Rate method
# R : 1.009057[ 1.005873 , 1.012269 ]
est.R0.AR(pop.size=1732, incid=c(2,3,4,7,4,2,4,5))
# Reproduction number estimate using Attack Rate method
# R : 1.009057[ 1.005873 , 1.012269 ]
est.R0.AR(pop.size=1732, incid=c(2,3,0,7,4,2,0,5))
# Reproduction number estimate using Attack Rate method
# R : 1.006699[ 1.003965 , 1.009453 ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.