Bottom up aggregration of base forecasts
Usage
bottom_up_aggregation(
base_forecasts,
cp,
ndraws,
draw_col = ".draw",
date_col = "date",
value_to_aggregate_col = "hosp",
rank_quantity_col = "hosp",
location_col = "location",
aggregated_location_name = "aggregate"
)
Arguments
- base_forecasts
The base forecasts tibble
- cp
Base forecast rank sampling copula.
- ndraws
Number of draws from rank sampling copula
- draw_col
String name of column for draws.
- date_col
String name of column for dates.
- value_to_aggregate_col
String name of column to make bottom-up aggregation on.
- rank_quantity_col
String name of column to rank draw/location pair on.
- location_col
String name of the location column.
- aggregated_location_name
Name for the aggregated location. Default
"aggregate"
.