Skip to contents

This function helps save the output of a forecasting model into a structured directory format suitable for submission to a forecasting hub. It creates necessary directories if they do not exist and saves the forecast output as a CSV file named with the forecast date and model name.

Usage

save_model_output(model_name = "AMPH-SARIMA", fc_output, forecast_date)

Arguments

model_name

Character. Name of the forecasting model (e.g., "AMPH-SARIMA").

fc_output

Data frame. Forecast output to be saved.

forecast_date

Character. Date of the forecast in "YYYY-MM-DD" format.

Value

NULL (invisibly)

Examples

if (FALSE) { # \dontrun{
library(AMPHForecastSuite)
setup_file_structure(project_dir = "My_Forecast_Project")
} # }