Skip to contents

Converts the output from an ARX forecasting model (e.g., arx_forecast) to the required hub format for submission to a forecasting hub.

Usage

trans_epipredarx_hv(
  fc_output = arx_forecast,
  model_name = "AMPH-epipredict-arx",
  target = "wk inc flu hosp",
  reference_date,
  horizon_time_steps = 0:3
)

Arguments

fc_output

List. Output from the ARX forecasting model (e.g., arx_forecast).

model_name

Character. Name of the forecasting model. Default is "AMPH-epipredict-arx".

target

Character. Target variable name. Default is "wk inc flu hosp".

reference_date

Date. The date of the forecast reference. This should be in "YYYY-MM-DD" format.

Value

tibble. A data frame in hub format.

Examples

if (FALSE) { # \dontrun{
library(AMPHForecastSuite)
setup_file_structure(project_dir = "My_Forecast_Project")
# Assuming you have ARX forecast output
hub_forecast <- trans_epipredarx_hv(fc_output = arx_forecast,
                    model_name = "AMPH-epipredict-arx",
                    target = "wk inc flu hosp",
                    reference_date = forecast_date + 6,
                    horizon_time_steps = 0:3)
} # }