This study aims to evaluate the performance of various methods in the OHDSI Methods Library using the OHDSI Methods Benchmark.
Make sure that you have Java installed. If you don't have Java already installed on your computed (on most computers it already is installed), go to java.com to get the latest version. (If you have trouble building with rJava below, be sure on Windows that your Path variable includes the path to jvm.dll (Windows Button --> type "path" --> Edit Environmental Variables --> Edit PATH variable, add to end ;C:/Program Files/Java/jre/bin/server) or wherever it is on your system.)
In R, use the following code to install the study package and its dependencies:
r
install.packages("devtools")
library(devtools)
install_github("ohdsi/Cyclops", ref = "v2.0.1")
install_github("ohdsi/FeatureExtraction", ref = "v2.1.5")
install_github("ohdsi/EmpiricalCalibration", ref = "v1.4.0")
install_github("ohdsi/CohortMethod", ref = "v3.0.1")
install_github("ohdsi/SelfControlledCaseSeries", ref = "v1.4.0")
install_github("ohdsi/CaseControl", ref = "v1.6.0")
install_github("ohdsi/SelfControlledCohort", ref = "v1.5.0")
install_github("ohdsi/CaseCrossover", ref = "v1.1.0")
install_github("ohdsi/MethodEvaluation", ref = "v1.0.0")
install_github("ohdsi-studies/MethodsLibraryPleEvaluation")
Once installed, you can execute the study by modifying and using the following code:
```r library(MethodsLibraryPleEvaluation)
options(fftempdir = "c:/FFtemp")
maxCores <- parallel::detectCores()
connectionDetails <- createConnectionDetails(dbms = "postgresql", user = "joe", password = "secret", server = "myserver")
cdmDatabaseSchema <- "cdm_truven_ccae_v778.dbo"
databaseName <- "CCAE"
outcomeDatabaseSchema <- "scratch.dbo" outcomeTable <- "mschuemi_ohdsi_hois_ccae" nestingCohortDatabaseSchema <- "scratch.dbo" nestingCohortTable <- "mschuemi_ohdsi_nesting_ccae"
oracleTempSchema <- NULL
outputFolder <- "c:/MethodsLibraryPleEvaluation_ccae"
execute <- function(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, oracleTempSchema = oracleTempSchema, outcomeDatabaseSchema = outcomeDatabaseSchema, outcomeTable = outcomeTable, nestingCohortDatabaseSchema = nestingCohortDatabaseSchema, nestingCohortTable = nestingCohortTable, outputFolder = outputFolder, databaseName = databaseName, maxCores = maxCores, cdmVersion = cdmVersion, createNegativeControlCohorts = TRUE, synthesizePositiveControls = TRUE, runCohortMethod = TRUE, runSelfControlledCaseSeries = TRUE, runSelfControlledCohort = TRUE, runCaseControl = TRUE, runCaseCrossover = TRUE, packageResults = TRUE) ```
For details on how to configurecreateConnectionDetails
in your environment type this for help:
r
?createConnectionDetails
cdmDatabaseSchema
should specify the schema name where your patient-level data in OMOP CDM format resides. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'.
oracleTempSchema
should be used in Oracle to specify a schema where the user has write privileges for storing temporary tables.
You can view the results using a Shiny app:
r
exportFolder <- file.path(outputFolder, "export")
MethodEvaluation::launchMethodEvaluationApp(exportFolder)
The OHDSI Evaluation of Population-Level Estimation Methods package is licensed under Apache License 2.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.