getIncidenceFromILI: Get incidence from ILI data

Description Usage Arguments Value Author(s)

View source: R/getIncidenceFromILI.R

Description

Get incidence from CDC-collected ILI data

Usage

1
2
3
4
5
6
7
8
getIncidenceFromILI(
  year,
  ILI = cdcfluview::ilinet(region = "national", years = (year - 1):(year + 1)),
  startWeekOfSeason = 40,
  attackRateToMatch,
  population = 1,
  weeksOfBackground = 3
)

Arguments

year

Vector of ages. Each element represents the upper range of an age range. The lowest bound is presumed to be zero. If the oldest age does not reach the end of the population range, an additional element is added to span the full range.

ILI

Data frame containing ILI data. Defaults to requesting data directly from ILINet via cdcfluview package. Required columns are year, week, and weighted_ili

startWeekOfSeason

Week of the year (integer) that is considered the start of the flu season. Defaults to 40.

attackRateToMatch

The overall attack rate for the season. Incidence will be rescaled to match this value.

population

Population to scale the resulting incidence curve to. Defaults to 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 data frame of weeks and incidence. It will only return weeks for which data exists and so may not correspond to a full year. Columns are: week & incidence.

Author(s)

Matt Clay <clay.matt@gmail.com>


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