Skip to contents

Compute the posterior of the difference between model predictions.

Usage

compute_forecast_differences(
  forecast_date,
  location,
  scenario,
  raw_output_dir,
  log_diff_offset
)

Arguments

forecast_date

Forecast date for which to compute differences.

location

Location for which to compute differences.

scenario

Wastewater data availability scenario to analyze.

raw_output_dir

Directory containing raw output .rds files. Used to obtain the admissions and wastewater data used in fitting the forecasting model.

log_diff_offset

Offset to add to incidences when computing a log difference.

Value

Posterior of the difference in total incidence across the full nowcast/forecast period. Saves the incidence differences by day and the total incidence difference to disk as a side effect.