Learn R Programming

EpiNow2 (version 1.3.2)

create_obs_model: Create Observation Model Settings

Description

Takes the output of obs_opts() and converts it into a list understood by stan.

Usage

create_obs_model(obs = obs_opts())

Arguments

obs

A list of options as generated by obs_opts() defining the observation model. Defaults to obs_opts().

Value

A list of settings ready to be passed to stan defining the Observation Model

See Also

obs_opts

Examples

Run this code
# NOT RUN {
# default observation model data
create_obs_model()

# Poisson observation model
create_obs_model(obs_opts(family = "poisson"))

# Applying a observation scaling to the data
create_obs_model(obs_opts(scale = list(mean = 0.4, sd = 0.01)))
# }

Run the code above in your browser using DataLab