View source: R/repeat_MIBench_experiment.R
repeat_MIbench_experiment | R Documentation |
Repeat a MIBench_experiment multiple times
repeat_MIbench_experiment(
dgp,
MIalgorithm,
m = 10,
store_runs = FALSE,
n_repetitions = 1000,
n_cores = 4,
seed = NULL,
...
)
dgp |
A dgp function in the format of MIBench |
MIalgorithm |
A multiple imputation algorithm in the format of MIBench |
m |
The number of imputations |
store_runs |
Set to TRUE if you want to store the output of the experiments. Default is FALSE. |
n_repetitions |
The number of repetitions (default is 1000) with fresh draws from the dgp function. |
n_cores |
The number of cores for parallel processing of the experiments. |
seed |
A random seed for the experiments. Note that a exact replication depends on the seed and the number of cores |
... |
Additional arguments for the dgp function |
A list of class "MIbench_imputations"
df <- cars
regression <- lm(log(dist)~speed, data = df)
# Specifiying no scenario to simulate at the mean of speed.
simloglm(regression)
# Explicitily specifying a scenario.
simloglm(regression, scenario = list(speed = c(5, 10, 20)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.