View source: R/run_MIBench_all_dgps.R
run_MIBench_all_dgps | R Documentation |
Run all experiments for one multiple imputation algorithm
run_MIBench_all_dgps(
MIalgorithm,
m = 10,
store_runs = FALSE,
store_results = FALSE,
n_repetitions = 1000,
n_cores = 4,
seed = NULL
)
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 imputations and all data of the experiments on disk. Default is FALSE. |
store_results |
Set to TRUE if you want to store the summary of the results of the experiments on disk. 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 |
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.