View source: R/benchmarkDrugUtilisation.R
benchmarkDrugUtilisation | R Documentation |
Run benchmark of drug utilisation cohort generation
benchmarkDrugUtilisation(
cdm,
ingredient = "acetaminophen",
alternativeIngredient = c("ibuprofen", "aspirin", "diclofenac"),
indicationCohort = NULL
)
cdm |
A |
ingredient |
Name of ingredient to benchmark. |
alternativeIngredient |
Name of ingredients to use as alternative treatments. |
indicationCohort |
Name of a cohort in the cdm_reference object to use as indicatiomn. |
A summarise_result object.
library(DrugUtilisation)
library(CDMConnector)
library(duckdb)
requireEunomia()
con <- dbConnect(drv = duckdb(dbdir = eunomiaDir()))
cdm <- cdmFromCon(con = con, cdmSchema = "main", writeSchema = "main")
timings <- benchmarkDrugUtilisation(cdm)
timings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.