SelfControlledCohort is part of HADES.
This package provides a method to estimate risk by comparing time exposed with time unexposed among the exposed cohort.
library(SelfControlledCohort)
connectionDetails <- createConnectionDetails(dbms = "postgresql",
user = "joe",
password = "secret",
server = "myserver")
sccResults <- runSelfControlledCohort(connectionDetails,
cdmDatabaseSchema = "cdm_data",
exposureIds = c(767410, 1314924, 907879),
outcomeIds = 444382,
outcomeTable = "condition_era")
summary(sccResults)
SelfControlledCohort is an R package.
Requires R. Libraries used in SelfControlledCohort require Java.
See the instructions here for configuring your R environment, including Java.
In R, use the following commands to download and install SelfControlledCohort:
r
install.packages("remotes")
remotes::install_github("ohdsi/SelfControlledCohort")
Documentation can be found on the package website.
PDF versions of the documentation are also available: * Package manual: SelfControlledCohort.pdf
Read here how you can contribute to this package.
SelfControlledCohort is licensed under Apache License 2.0
SelfControlledCohort is being developed in R Studio.
Beta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.