Helper function to format posterior samples into quantiles in the structure
expected by scoringutils::as_forecast_quantile().
format_quantile_predictions(samples, quantiles, forecast_date)Data.table with columns: forecast_date, date, horizon, quantile_level, predicted
Data.table with date and value columns
Numeric vector of quantile levels
Date when the forecast was made