extract_obs_metadata | R Documentation |
This function extracts metadata from the provided dataset to be used in the observation model.
extract_obs_metadata(new_confirm, observation_indicator = NULL)
new_confirm |
A data.table containing the columns: "reference_date",
"delay", ".group", "new_confirm", and "max_obs_delay".
As produced by |
observation_indicator |
A character string specifying the column name
in |
A list containing:
st
: time index of each snapshot (snapshot time).
ts
: snapshot index by time and group.
sl
: number of reported observations per snapshot (snapshot
length).
csl
: cumulative version of sl.
lsl
: number of consecutive reported observations per
snapshot accounting for missing data.
clsl
: cumulative version of lsl.
nsl
: number of observed observations per snapshot (snapshot
length).
cnsl
: cumulative version of nsl.
sg
: group index of each snapshot (snapshot group).
Helper functions for model modules
add_max_observed_delay()
,
add_pmfs()
,
convolution_matrix()
,
enw_reference_by_report()
,
enw_reps_with_complete_refs()
,
extract_sparse_matrix()
,
latest_obs_as_matrix()
,
simulate_double_censored_pmf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.