Simulate a model n_runs
times and refit a certain model to the generated data.
Record the estimated parameters, the accuracies of global decoding and a summary of the models.
Usage
full_sim_loop(
simulation,
n_runs,
dists_fitted,
p_fitted,
n_states_fitted,
n_samples_simulated,
extract_aic_bic = FALSE,
...
)
Arguments
- simulation
Function that generates one simulation.
- n_runs
Number of models that should be created in the loop.
- dists_fitted
Vector of distributions of fitted model in R-jargon.
- p_fitted
Vector of degrees of autoregression of fitted models (one value for every state).
- n_states_fitted
Number of states of the fitted models.
- n_samples_simulated
Number of samples simulated in each model.
- extract_aic_bic
bool, indicates if AIC and BIC of the models should also be saved.
- ...
Input parameters for the simulation function.