Create Observation Model Settings
Takes the output of obs_opts()
and converts it into a list understood by stan.
create_obs_model(obs = obs_opts(), dates)
obs
: A list of options as generated by obs_opts()
defining the observation model. Defaults to obs_opts()
.dates
: A vector of dates used to calculate the day of the week.A list of settings ready to be passed to stan defining the Observation Model
## Not run: dates <- seq(as.Date("2020-03-15"), by = "days", length.out = 15) # default observation model data create_obs_model(dates = dates) # Poisson observation model create_obs_model(obs_opts(family = "poisson"), dates = dates) # Applying a observation scaling to the data create_obs_model( obs_opts(scale = Normal(mean = 0.4, sd = 0.01)), dates = dates ) # Apply a custom week week length create_obs_model(obs_opts(week_length = 3), dates = dates) ## End(Not run)
obs_opts()
Useful links