Skip to contents

Compute the the posterior of the difference between model predictions.

Usage

compute_forecast_difference(forecast_date, location, scenario, raw_output_dir)

Arguments

forecast_date

forecast_date for which to fits recent data trends. Data for an actual forecast must already have been produced and exist in raw_output_dir.

location

Location for which to fit trends.

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.

Value

List containing two tables, one containing posteriors for the difference by target date, the other containing the posterior for the total difference across all target dates.