create_seasonal: Creates observed truth for seasonal targets

Description Usage Arguments Value Examples

View source: R/create_seasonal.R

Description

Determines observed true values for onset week, seasonal peak, and seasonal peak percentage

Usage

1
create_seasonal(weekILI, location, year, challenge = "ilinet")

Arguments

weekILI

A data.frame of weighted ILI values (default NULL). For challege = "ilinet" or challenge = "state_ili", must contain columns location, week, and wILI. For challenge = "hospital", must contain columns age_grp, week, and weeklyrate.

location

A character string specifying the target location or age group

year

Calendar year during which the flu season of interest begins. For the 2015/2016 flu season, year = 2015

challenge

one of "ilinet", "hospital" or "state_ili", indicating which challenge the submission is for (default "ilinet")

Value

A data.frame with columns location, target, and bin_start_incl

Examples

1
2
3
season_targets <- create_seasonal(valid_ILI, "US National")
season_targets <- create_seasonal(valid_ILI, "HHS Region 4")
  

jarad/FluSight documentation built on Oct. 24, 2020, 9:58 p.m.