Skip to contents

Convenience wrapper: updates parameters from posterior draws and calls `chlaa_make_aa_scenarios()`.

Usage

chlaa_make_aa_scenarios_from_fit(
  fit,
  pars,
  draw = c("median", "mean", "sample", "index"),
  burnin = 0.5,
  thin = 1,
  seed = 1,
  trigger_time = NULL,
  trigger_threshold = 15,
  trigger_time_var = "inc_symptoms",
  trigger_sim_time = 0:365,
  trigger_sim_particles = 50,
  dt = 0.25,
  horizon = NULL,
  ...
)

Arguments

fit

Fit object.

pars

Baseline parameter list.

draw

Posterior draw selection passed to `chlaa_update_from_fit()`.

burnin, thin, seed

Passed to `chlaa_update_from_fit()`.

trigger_time

Optional explicit trigger time.

trigger_threshold

If trigger_time is NULL, derive from baseline simulation using this threshold.

trigger_time_var

Variable used for thresholding (default `inc_symptoms`).

trigger_sim_time

Time vector used for baseline simulation when deriving trigger.

trigger_sim_particles

Particles used for baseline simulation when deriving trigger.

dt

Model time step.

horizon

Optional cap on intervention end times.

...

Other arguments forwarded to `chlaa_make_aa_scenarios()` (e.g. vax_total_doses).

Value

A list of scenarios with attribute `baseline_pars`.