Skip to contents

Create 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, and observation columns.

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.

Value

A data frame of baseline forecasts for the specified target.