run_sim | R Documentation |
run_sim
run_sim( .sim_fun = generate_data, .sim_args = list_conditions_datagen(), .plan_future = plan_future(), .seed_start = TRUE, .progress_bar = FALSE, ... )
.sim_fun |
A function name. The function to be iterated over in the simulations. |
.sim_args |
A named list of simulation conditions. Each element must
match a named argument in |
.plan_future |
A call to |
.seed_start |
A logical or numeric. Passed to the |
... |
Parameters passed to |
A list of objects created by applying .sim_fun
to each
combination of conditions given in .sim_args
.
## Not run: .n_reps <- 1:2 purrr::map(.n_reps, ~run_sim( .sim_args = list_conditions_datagen( .n_sch = 5, .n_stu = 5, .clust_cov = .8, .pct_mobile = .5, .gamma_x = list(c(0, 0)) ) )) %>% rlang::set_names(., nm = paste0("replication_", .n_reps)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.