R/get.R
format_sample_predictions.Rd
Helper function to format posterior samples into the structure expected by scoringutils::as_forecast_sample().
scoringutils::as_forecast_sample()
format_sample_predictions(samples, forecast_date)
Data.table with date, sample, and value columns
Date when the forecast was made
Data.table with columns: forecast_date, date, horizon, sample, predicted