Create an internal data transformation function in hubEvals that will transform mean and median model-output data into a format that can be successfully converted to a scoringutils forecast object: https://epiforecasts.io/scoringutils/dev/reference/as_forecast.html (scoringutils classifies both mean and median forecasts as a point forecast).
A good source of test data for this function is the forecast_outputs data object in the hubExamples repo (filtering on output_type == mean and output_type == median)
(formerly part of https://github.com/Infectious-Disease-Modeling-Hubs/hubEvals/issues/12)
Create an internal data transformation function in hubEvals that will transform mean and median model-output data into a format that can be successfully converted to a scoringutils forecast object: https://epiforecasts.io/scoringutils/dev/reference/as_forecast.html (scoringutils classifies both mean and median forecasts as a
point
forecast).This is not a user-facing function. Instead, it will be invoked by the publicly-accessible function described in https://github.com/Infectious-Disease-Modeling-Hubs/hubEvals/issues/11.
A good source of test data for this function is the forecast_outputs data object in the
hubExamples
repo (filtering onoutput_type == mean
andoutput_type == median
)https://github.com/Infectious-Disease-Modeling-Hubs/hubExamples/blob/main/data/forecast_outputs.rda
Definition of done:
transform_point_model_output