Skip to contents

Generates a simulated cdm database.

Usage

runSampleGeneration(
  simulationDatabaseDir,
  size,
  exposureIds,
  outcomeIds,
  covariateSettings,
  modelDir,
  saveDir
)

Arguments

simulationDatabaseDir

The directory where a self-contained database limited to the target patient cohorts is stored.

size

The size of the simulated database.

exposureIds

The cohort defintion ids of the exposure cohorts of interest. These are located in the combined cohort table of the limited cdm database.

outcomeIds

The cohort defintion ids of the outcome cohorts of interest. These are located in the outcome table of the limited cdm database.

covariateSettings

An object of type covariateSettings generated with createCovariateSettings.

modelDir

The directory where the outcome models are saved.

saveDir

The directory where the simulated database will be stored.