build_ord_obs: Build the ord_obs 'data.table'.

build_ord_obsR Documentation

Build the ord_obs data.table.

Description

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.

See Also

Functions used for postprocessing of model fits enw_add_latest_obs_to_nowcast(), enw_nowcast_samples(), enw_nowcast_summary(), enw_posterior(), enw_pp_summary(), enw_quantiles_to_long(), enw_summarise_samples(), subset_obs()


seabbs/epinowcast documentation built on July 27, 2024, 1:33 p.m.