create_forecast_data: Create forecast settings

View source: R/create.R

create_forecast_dataR Documentation

Create forecast settings

Description

Create forecast settings

Usage

create_forecast_data(forecast = forecast_opts(), data)

Arguments

forecast

A list of options as generated by forecast_opts() defining the forecast opitions. Defaults to forecast_opts(). If NULL then no forecasting will be one.

data

A ⁠<data.frame>⁠ of confirmed cases (confirm) by date (date). confirm must be numeric and date must be in date format. Optionally this can also have a logical accumulate column which indicates whether data should be added to the next data point. This is useful when modelling e.g. weekly incidence data. See also the fill_missing() function which helps add the accumulate column with the desired properties when dealing with non-daily data. If any accumulation is done this happens after truncation as specified by the truncation argument.

Value

A list of settings ready to be passed to stan defining the Observation Model


epiforecasts/EpiNow2 documentation built on Dec. 20, 2024, 10:12 p.m.