create_week: Creates observed truth for 1-4 week ahead prediction

Description Usage Arguments Value Examples

View source: R/create_week.R

Description

Determines observed true values for 1 to 4 week ahead weighted ILINet predictions

Usage

1
create_week(weekILI, start_wk, end_wk, challenge = "ilinet")

Arguments

weekILI

A data.frame of weighted ILI values (default NULL). Must contain columns location, week, and wILI.

start_wk

The first MMWR week used for creating forecasts

end_wk

The last MMWR week used for creating forecasts

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
week_targets <- create_week(valid_ILI, 42, 18)

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