Skip to contents

This function extracts forecasts from an INLA model object then formats data for submission to the Covid19-forecast-hub (https://github.com/reichlab/covid19-forecast-hub).

Usage

extract_forecasts(mod_out, dataStack, train_data, team = "TeamName")

Arguments

mod_out

The fitted model object

train_data

The training data used to fit the model

nrm.stk

An object of class 'inla.stack'

Value

A data frame with columns for the forecast date, location, target, target end date, type of value (quantile or point), quantile value (if applicable), and forecast value as required for submission to Covid19-forecast-hub.