This R package is an implementation of the IC Temporal Pattern Discovery method to estimate risk by combining a self-controlled and cohort design. It is designed to run against observational databases in the OMOP Common Data Model.
library(IcTemporalPatternDiscovery)
connectionDetails <- createConnectionDetails(dbms = "postgresql",
user = "joe",
password = "secret",
server = "myserver")
exposureOutcomePairs = data.frame(outcomeId = c(196794, 196794, 312648),
exposurId = c(1501700, 1545958, 1551803))
ictpdData <- getDbIctpdData(connectionDetails,
cdmDatabaseSchema = "cdm_schema.dbo",
exposureOutcomePairs = exposureOutcomePairs)
ictpdResults <- calculateStatisticsIC(ictpdData)
ictpdResults
IcTemporalPatternDiscovery is an R package.
Requires R (version 4.0.0 or higher). Libraries used in this package require Java.
See the instructions here for configuring your R environment, including Java.
In R, use the following commands to download and install IcTemporalPatternDiscovery:
r
install.packages("remotes")
remotes::install_github("ohdsi/IcTemporalPatternDiscovery")
Documentation can be found on the package website.
PDF versions of the documentation are also available:
IcTemporalPatternDiscovery is licensed under Apache License 2.0
IcTemporalPatternDiscovery is being developed in R Studio.
Beta
This package was developed by Tomas Bergvall, adapted by Martijn Schuemie.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.