Tags: FEEDER-NET
Study lead: Chungsoo Kim, Dong Yun Lee, Rae Woong Park, Yunmi Shin
Comprehensive comparative safety study of SSRI for adolescent ADHD and depression cormobid population.
Follow these instructions for seting up your R environment, including RTools and Java.
Open your study package in RStudio. Use the following code to install all the dependencies:
r
renv::restore()
In RStudio, select 'Build' then 'Install and Restart' to build the package.
Once installed, you can execute the study by modifying and using the code below. For your convenience, this code is also provided under extras/CodeToRun.R
:
```r library(Assure)
options(andromedaTempFolder = "s:/andromedaTemp")
maxCores <- parallel::detectCores()
minCellCount <- 5
outputFolder <- "s:/Assure"
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = "postgresql", server = "some.server.com/ohdsi", user = "joe", password = "secret")
cdmDatabaseSchema <- "cdm_synpuf"
cohortDatabaseSchema <- "scratch.dbo" cohortTable <- "my_study_cohorts"
databaseId <- "Synpuf" databaseName <- "Medicare Claims Synthetic Public Use Files (SynPUFs)" databaseDescription <- "Medicare Claims Synthetic Public Use Files (SynPUFs) were created to allow interested parties to gain familiarity using Medicare claims data while protecting beneficiary privacy. These files are intended to promote development of software and applications that utilize files in this format, train researchers on the use and complexities of Centers for Medicare and Medicaid Services (CMS) claims, and support safe data mining innovations. The SynPUFs were created by combining randomized information from multiple unique beneficiaries and changing variable values. This randomization and combining of beneficiary information ensures privacy of health information."
oracleTempSchema <- NULL
execute(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, cohortDatabaseSchema = cohortDatabaseSchema, cohortTable = cohortTable, oracleTempSchema = oracleTempSchema, outputFolder = outputFolder, databaseId = databaseId, databaseName = databaseName, databaseDescription = databaseDescription, createCohorts = TRUE, synthesizePositiveControls = TRUE, runAnalyses = TRUE, packageResults = TRUE, maxCores = maxCores) ```
To view the results, use the Shiny app:
r
prepareForEvidenceExplorer("Result_<databaseId>.zip", "/shinyData")
launchEvidenceExplorer("/shinyData", blind = TRUE)
Note that you can save plots from within the Shiny app. 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.
```r execute(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, cohortDatabaseSchema = cohortDatabaseSchema, cohortTable = cohortTable, oracleTempSchema = oracleTempSchema, outputFolder = outputFolder, databaseId = databaseId, databaseName = databaseName, databaseDescription = databaseDescription, createCohorts = FALSE, synthesizePositiveControls = FALSE, runAnalyses = FALSE, packageResults = FALSE, subgroup = FALSE, maxCores = maxCores)
# MALE
resultsZipFile <- file.path(paste0(outputFolder, '/male_group'), "export", paste0("Results_", databaseId, ".zip"))
dataFolder <- file.path(paste0(outputFolder, '/male_group'), "shinyData")
prepareForEvidenceExplorer(resultsZipFile = resultsZipFile, dataFolder = dataFolder)
launchEvidenceExplorer(dataFolder = dataFolder, blind = F, launch.browser = T)
# FEMALE
resultsZipFile <- file.path(paste0(outputFolder, '/female_group'), "export", paste0("Results_", databaseId, ".zip"))
dataFolder <- file.path(paste0(outputFolder, '/female_group'), "shinyData")
prepareForEvidenceExplorer(resultsZipFile = resultsZipFile, dataFolder = dataFolder)
launchEvidenceExplorer(dataFolder = dataFolder, blind = F, launch.browser = T)
```
The ASSURE package is licensed under Apache License 2.0
ASSURE was developed in ATLAS and R Studio.
Design finalized
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.