benchmarkDrugUtilisation {DrugUtilisation} | R Documentation |
Run benchmark of drug utilisation cohort generation
Description
Run benchmark of drug utilisation cohort generation
Usage
benchmarkDrugUtilisation(
cdm,
numberOfCohort = 1:4,
indicationCohortName = "cohort1",
ingredientId = 1125315,
drugExposureName = "drug_exposure"
)
Arguments
cdm |
A CDM reference object |
numberOfCohort |
Number of cohort to generate for benchmarking. An integer or a vector of integers |
indicationCohortName |
Name of indication cohort table |
ingredientId |
Ingredient OMOP concept that we are interested for the study. It is a compulsory input, no default value is provided. |
drugExposureName |
Name of drug_exposure table in cdm, the table must contain drug_concept_id, quantity, drug_exposure_start_date and drug_exposure_end_date as columns |
Value
a tibble with time taken for different analyses
Examples
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
timings <- benchmarkDrugUtilisation(cdm)
timings
[Package DrugUtilisation version 0.7.0 Index]