Skip to contents

Build the ord_obs data.table.

Usage

build_ord_obs(obs, max_delay, internal_timestep, timestep, nowcast = NULL)

Arguments

obs

Observations as pulled from nowcast$latest[[1]].

max_delay

Whole number representing the maximum delay in units of the timestep.

internal_timestep

The internal timestep in days.

timestep

The timestep to be used. This can be a string ("day", "week", "month") or a numeric whole number representing the number of days.

nowcast

If getting posterior samples, a data frame with a `.draws“ column to get the draws from, as pulled from the fit attribute of a nowcast.

Value

A data.table.