]> nmode's Git Repositories - Rnaught/blob - man/IDEA.Rd
Re-gen docs and prevent genning of internal functions
[Rnaught] / man / IDEA.Rd
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/IDEA.R
3 \name{IDEA}
4 \alias{IDEA}
5 \title{IDEA method}
6 \usage{
7 IDEA(NT, mu)
8 }
9 \arguments{
10 \item{NT}{Vector of case counts.}
11
12 \item{mu}{Mean of the serial distribution. This needs to match case counts in
13 time units. For example, if case counts are weekly and the serial
14 distribution has a mean of seven days, then \code{mu} should be set
15 to one. If case counts are daily and the serial distribution has a
16 mean of seven days, then \code{mu} should be set to seven.}
17 }
18 \value{
19 \code{IDEA} returns a single value, the estimate of R0.
20 }
21 \description{
22 This function implements a least squares estimation method of R0 due to
23 Fisman et al. (PloS One, 2013). See details for implementation notes.
24 }
25 \details{
26 This method is closely related to that implemented in \code{ID}. The method
27 is based on an incidence decay model. The estimate of R0 is the value which
28 minimizes the sum of squares between observed case counts and cases counts
29 expected under the model.
30
31 This method is based on an approximation of the SIR model, which is most
32 valid at the beginning of an epidemic. The method assumes that the mean of
33 the serial distribution (sometimes called the serial interval) is known. The
34 final estimate can be quite sensitive to this value, so sensitivity testing
35 is strongly recommended. Users should be careful about units of time (e.g.,
36 are counts observed daily or weekly?) when implementing.
37 }
38 \examples{
39 # Weekly data.
40 NT <- c(1, 4, 10, 5, 3, 4, 19, 3, 3, 14, 4)
41
42 # Obtain R0 when the serial distribution has a mean of five days.
43 IDEA(NT, mu = 5 / 7)
44
45 # Obtain R0 when the serial distribution has a mean of three days.
46 IDEA(NT, mu = 3 / 7)
47
48 }