Skip to contents

Load in and score real-time outputs from the two CFA models (wastewater-informed and hospital admissions-only)

Usage

score_real_time_outputs(
  score_type,
  real_time_output_dir,
  table_of_run_ids,
  locations,
  eval_data,
  offset,
  model_types = c("ww", "hosp")
)

Arguments

score_type

A string indicating which score to generate, either "crps" or "wis". Note, if using crps, will score draws from nowcast and forecast. If using wis, will score only the forecasts.

real_time_output_dir

A string indicating the upper level directory where the real-time outputs live locally

table_of_run_ids

A tibble containing the forecast date, run id, and date run for each of the production runs

locations

A vector of character strings indicating the locations to pull, this should be all jurisdictions

eval_data

a tibble of hospital admissions evaluation data to be used for scoring.

offset

Offset to use when transforming forecasts with scoringutils::log_shift() via scoringutils::transform_forecasts().

model_types

Character vector of model types to score. One or both of "ww" and "hosp". Default both: c("ww", "hosp")

Value

A tibble containing scores for every location and forecast date, conditioned on the presence of wastewater and model convergence