Create a hub formatted baseline forecast for a single target
Source:R/generate_hub_baselines.R
make_baseline_forecast.RdCreate a hub formatted baseline forecast for a single target
Usage
make_baseline_forecast(
target_data,
target_name,
target_label,
reference_date,
desired_max_time_value,
rng_seed
)Arguments
- target_data
Data frame of target time series. Must include
date,location,target, andobservationcolumns.- target_name
Character. Name of the target to forecast, e.g., "wk inc covid hosp".
- target_label
Character. Label for the target, e.g., "Hospital Admissions" or "Proportion ED Visits".
- reference_date
Date. Reference date for the forecast.
- desired_max_time_value
Date. Most recent date for which observations are expected. Function will error if there is excess latency; see
assert_data_up_to_date().- rng_seed
Integer. Random seed for reproducibility.