Skip to contents

Get plot of WIS over time

Usage

make_fig5_average_wis(
  all_scores,
  cfa_real_time_scores = c(),
  models_to_show,
  time_period,
  horizon_time_in_weeks = NULL,
  fig_file_dir = NULL
)

Arguments

all_scores

Scores from entire time period of interest, including the retrospective cfa model, scored with scoringutils::score() and summarized across quantiles only with scoringutils::summarise_scores()

cfa_real_time_scores

Real-time scores from Feb - Mar for the cfa ww model submitted to the hub, scored with scoringutils::score() and summarized across quantiles only with scoringutils::summarise_scores(), default is c()

models_to_show

A vector of charcter strings indicating which models from the COVID-19 forecast hub to include in the plot.

time_period

String indicating the time period this plot pertains to

horizon_time_in_weeks

horizon time in weeks to summarize over, default is NULL which means that the scores are summarized over the nowcast period and the 4 week forecast period

fig_file_dir

string indicating where to save fig, default is NULL

Value

a ggplot object of WIS scores over time colored by model, for the real-time cfa model from Feb - Mar and the retrospective CFA model over all time points