Runs the simulation model for multiple posterior draws and returns a long data frame.
Usage
chlaa_simulate_posterior(
fit,
pars,
time,
n_draws = 50,
burnin = 0.5,
thin = 1,
seed = 1,
dt = 0.25,
n_particles = 1
)
Arguments
- fit
Fit object.
- pars
Baseline parameter list.
- time
Simulation times.
- n_draws
Number of posterior draws to simulate.
- burnin, thin
Passed to draw selection.
- seed
Seed.
- dt
Model time step.
- n_particles
Particles per posterior draw.
Value
A data.frame with columns: draw, time, particle, plus model variables.