Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 2.6 KB

README.md

File metadata and controls

79 lines (63 loc) · 2.6 KB

SelfControlledCohort

Introduction

This package provides a method to estimate risk by comparing time exposed with time unexposed among the exposed cohort.

Features

  • Extracts the necessary data from a database in OMOP Common Data Model format.
  • Supports stratification by age, gender, and index year.

Example

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)

Technology

SelfControlledCohort is an R package.

System Requirements

Requires R. Libraries used in SelfControlledCohort require Java.

Dependencies

  • DatabaseConnector
  • SqlRender
  • OhdsiRTools

Getting Started

  1. The DatabaseConnector and SqlRender packages require Java. Java can be downloaded from http://www.java.com.
  2. In R, use the following commands to download and install CohortMethod:
install.packages("devtools")
library(devtools)
install_github("ohdsi/OhdsiRTools") 
install_github("ohdsi/SqlRender")
install_github("ohdsi/DatabaseConnector")
install_github("ohdsi/SelfControlledCohort")

Getting Involved

License

SelfControlledCohort is licensed under Apache License 2.0

Development

SelfControlledCohort is being developed in R Studio.

Development status

Build Status codecov.io

Beta