Description Usage Arguments Value Author(s)
View source: R/rescaleIncidence.R
Rescales incidence to match a given total number of infections. Can adjust to reduce incidence by a presumed background rate.
1 | rescaleIncidence(incidence, totalInfections, weeksOfBackground = 3)
|
incidence |
Weekly incidence |
totalInfections |
Total number of infections. It can represent the total number of infections or the fraction of the population that became infected (totalInfections < 1). |
weeksOfBackground |
Weeks of data at start and end of the data to presume reflect "background" incidence and to reduce the incidence curve by. Default to 3. |
A vector of weekly incidence. If totalInfections represents a fraction of the population (< 1), then this represents a rate of infection.
Matt Clay <clay.matt@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.