This study aims to compare the risk of cancer between H2 blockers
See this video for instructions on how to set up the R environment on Windows.
We strongly recommend using renv
to build project-specific R environment as guided here.
Otherwise, 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 RanitidineCancerRisk package:
r
install_github("ohdsi-studies/RanitidineCancerRisk", args = "--no-multiarch")
Once installed, please execute the following code. Then Send the file ./export/Results_<DatabaseId>.zip
in the output folder to the study coordinator (SCYou, applegna@gmail.com)
```r library(RanitidineCancerRisk)
options(fftempdir = "c:/FFtemp")
maxCores <- parallel::detectCores()
minCellCount <- 5
outputFolder <- "c:/RanitidineCancerRisk"
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) ```
Please send the file export/Results<DatabaseId>.zip
in the output folder to the study coordinator (SCYou, seng.chan.you@ohdsi.org or applegna@gmail.com):
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.
The RanitidineCancerRisk package is licensed under Apache License 2.0
RanitidineCancerRisk was developed in ATLAS and R Studio.
Under development
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.