rescaleIncidence: Rescale incidence

Description Usage Arguments Value Author(s)

View source: R/rescaleIncidence.R

Description

Rescales incidence to match a given total number of infections. Can adjust to reduce incidence by a presumed background rate.

Usage

1
rescaleIncidence(incidence, totalInfections, weeksOfBackground = 3)

Arguments

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.

Value

A vector of weekly incidence. If totalInfections represents a fraction of the population (< 1), then this represents a rate of infection.

Author(s)

Matt Clay <clay.matt@gmail.com>


HHS/ASPR-flumodelsutil documentation built on Dec. 31, 2020, 12:58 p.m.