View source: R/MIBench_experiment.R
MIBench_experiment | R Documentation |
Run an experiment with MIBench
MIBench_experiment(
dgp = NULL,
MIalgorithm = NULL,
m = 10,
store_runs = FALSE,
suffix = 1,
...
)
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. |
suffix |
A suffix for the files, especially useful if you run multiple experiments in a loop. |
... |
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.