This study aims to estimate the population level-effects of conventional synthetic disease-modifying antirheumatic drugs among patients with rheumatoid arthritis.
See this video for instructions on how to set up the R environment on Windows.
In R
, use the following code to install the dependencies:
r
install.packages("devtools")
library(devtools)
install_github("ohdsi/SqlRender")
install_github("ohdsi/DatabaseConnector")
install_github("ohdsi/OhdsiSharing")
install_github("ohdsi/FeatureExtraction")
install_github("ohdsi/CohortMethod")
install_github("ohdsi/EmpiricalCalibration")
install_github("ohdsi/MethodEvaluation")
If you experience problems on Windows where rJava can't find Java, one solution may be to add args = "--no-multiarch"
to each install_github
call, for example:
r
install_github("ohdsi/SqlRender", args = "--no-multiarch")
Alternatively, ensure that you have installed both 32-bit and 64-bit JDK versions, as mentioned in the video tutorial.
In 'R', use the following code to install the EhdenRaDmardsEstimation package:
r
install_github("ohdsi-studies/EhdenRaDmardsEstimation", args = "--no-multiarch")
Once installed, you can execute the study by modifying and using the following code:
```r library(EhdenRaDmardsEstimation)
options(fftempdir = "c:/FFtemp")
maxCores <- parallel::detectCores()
minCellCount <- 5
outputFolder <- "c:/EhdenRaDmardsEstimation"
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = "", server = "", user = "", password = "")
cdmDatabaseSchema <- ""
cohortDatabaseSchema <- "" cohortTable <- ""
databaseId <- "" # required databaseName <- "" # required databaseDescription <- ""
oracleTempSchema <- NULL
execute(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, cohortDatabaseSchema = cohortDatabaseSchema, cohortTable = cohortTable, oracleTempSchema = oracleTempSchema, outputFolder = outputFolder, databaseId = databaseId, databaseName = databaseName, databaseDescription = databaseDescription, createCohorts = TRUE, synthesizePositiveControls = FALSE, runAnalyses = TRUE, runDiagnostics = TRUE, packageResults = TRUE maxCores = maxCores, minCellCount = minCellCount) ```
To view the results, use the Shiny app:
r
resultsZipFile <- file.path(outputFolder, "export", paste0("Results", databaseId, ".zip"))
dataFolder <- file.path(outputFolder, "shinyData")
prepareForEvidenceExplorer(resultsZipFile = resultsZipFile, dataFolder = dataFolder)
launchEvidenceExplorer(dataFolder = dataFolder, blind = TRUE, launch.browser = FALSE)
Note that you can save plots from within the Shiny app (You can do this by re-building the package). It is possible to view results from more than one database by applying prepareForEvidenceExplorer
to the Results file from each database, and using the same data folder. Set blind = FALSE
if you wish to be unblinded to the final results.
resultsZipFile
directory location. This file contains the results to submit to the study lead.The DMARDs comparative safety in RA 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.