Skip to contents

Create an ensemble forecast for a single target

Usage

ensemble_by_target(
  weekly_models,
  weekly_forecasts,
  target_name,
  ensemble_model_id,
  ensemble_output_type = "quantile",
  ensemble_agg_fun = "median"
)

Arguments

weekly_models

Data frame of model metadata for the week. Must include model_id, designated_model and target columns.

weekly_forecasts

Data frame of forecasts for the week.

target_name

Character. Name of the target to ensemble, e.g., "wk inc covid hosp".

ensemble_model_id

Character. Model_id to assign to the ensemble output.

ensemble_output_type

Output type to ensemble. Default "quantile".

ensemble_agg_fun

Aggregation function to use. Default "median".

Value

A data frame of ensemble forecasts for the specified target.