Extract simulated quantities based on the provided configuration.
Source:R/extract_estimates.R
extract_simulated_quantity.RdExtract simulated quantities based on the provided configuration.
Arguments
- sim_diags
The simulated diagnosis data containing stan_data and sim_data.
- quantity
The quantity to extract.
- deterministic
Logical indicating whether to re-run the simulation deterministically (dist = FALSE) to obtain the expected values (lambda) rather than the stochastic realisation. Useful for bias/MSE calculations across multiple seeds (default is FALSE).