subset_obs: Subset observations data table for either modelled dates or...

subset_obsR Documentation

Subset observations data table for either modelled dates or not-modelled earlier dates.

Description

Subset observations data table for either modelled dates or not-modelled earlier dates.

Usage

subset_obs(ord_obs, max_delay, internal_timestep, reference_subset)

Arguments

ord_obs

The observations data.table to be subset, as pulled from the result of calling epinowcast() and coerced to a data table.

max_delay

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

internal_timestep

A numeric value representing the number of days in the timestep, e.g. 7 when the timesteps are weeks.

reference_subset

String giving a relational operator to subset ord_obs by reference date; e.g. > to keep the modelled reference dates from after the max_delay.

Value

A data.frame subset for the desired observations

See Also

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


seabbs/epinowcast documentation built on Sept. 20, 2024, 2:39 a.m.