enw_obs: Setup observation model and data

enw_obsR Documentation

Setup observation model and data

Description

Setup observation model and data

Usage

enw_obs(family = c("negbin", "poisson"), observation_indicator = NULL, data)

Arguments

family

Character string, the observation model to use in the likelihood; enforced by base::match.arg(). By default this is a negative binomial ("negbin") with Poisson ("poisson") also being available. Support for additional observation models is planned, please open an issue with suggestions.

observation_indicator

A character string, the name of the column in the data that indicates whether an observation is observed or not (using a logical variable) and therefore whether or not it should be used in the likelihood. This variable should be present in the data input to enw_preprocess_data(). It can be generated using flag_observation in enw_complete_dates() or it can be created directly using enw_flag_observed_observations(). If either of these approaches are used then the variable will be name .observed. Default is NULL.

data

Output from enw_preprocess_data().

Value

A list as required by stan.

See Also

Model modules enw_expectation(), enw_fit_opts(), enw_missing(), enw_reference(), enw_report()

Examples

enw_obs(data = enw_example("preprocessed"))

seabbs/epinowcast documentation built on Aug. 28, 2024, 12:31 p.m.