Given a sample of parameter vectors, simulate the condensed state simulation history for each ... TODO

simulate_ensemble(
  model,
  sim_params_matrix = NULL,
  covmat = NULL,
  qvec = c(value = 0.5, lwr = 0.025, upr = 0.975),
  use_progress_bar = TRUE,
  ...
)

Arguments

model

flexmodel object, preferably a flexmodel_calibrated object that was fitted with bbmle_flexmodel or calibrate_flexmodel

sim_params_matrix

numberic matrix with rows giving simulation iterations and columns giving model parameters

covmat

not used

qvec

named numeric vector giving quantiles to compute

use_progress_bar

should a progress bar be printed?

...

arguments to pass on the pop_pred_samp, which is actually doing the sampling from the distribution of parameters. useful parameters here include the sample size, n (default 1000), and PDify = TRUE that can solve issues with non-positive definite matrices.

See also