MIBench_experiment: Run an experiment with MIBench

View source: R/MIBench_experiment.R

MIBench_experimentR Documentation

Run an experiment with MIBench

Description

Run an experiment with MIBench

Usage

MIBench_experiment(
  dgp = NULL,
  MIalgorithm = NULL,
  m = 10,
  store_runs = FALSE,
  suffix = 1,
  ...
)

Arguments

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

Value

A list of class "MIbench_imputations"

Examples

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)))


mneunhoe/MIBench documentation built on May 22, 2023, 11:07 p.m.