Giter Site home page Giter Site logo

jpfairbanks / cohortmethod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ohdsi/cohortmethod

0.0 1.0 0.0 47.49 MB

An R package for performing new-user cohort studies in an observational database in the OMOP Common Data Model.

R 93.17% Shell 0.20% C++ 6.63%

cohortmethod's Introduction

CohortMethod

Introduction

CohortMethod is an R package for performing new-user cohort studies in an observational database in the OMOP Common Data Model.

Features

  • Extracts the necessary data from a database in OMOP Common Data Model format.
  • Uses a large set of covariates for both the propensity and outcome model, including for example all drugs, diagnoses, procedures, as well as age, comorbidity indexes, etc.
  • Large scale regularized regression to fit the propensity and outcome models.
  • Includes function for trimming, stratifying and matching on propensity scores.
  • Includes diagnostic functions, including propensity score distribution plots and plots showing covariate balance before and after matching and/or trimming.
  • Supported outcome models are (conditional) logistic regression, (conditional) Poisson regression, and (conditional) Cox regression.

Screenshots

CohortMethod propensity score plot CohortMethod covariate balance plot
Propensity (preference score) distributionCovariate balance plot

Technology

CohortMethod is an R package, with some functions implemented in C++.

System Requirements

Requires R (version 3.1.0 or higher). Installation on Windows requires RTools. Libraries used in CohortMethod require Java.

Dependencies

  • Cyclops
  • DatabaseConnector
  • SqlRender
  • OhdsiRTools
  • FeatureExtraction

Getting Started

  1. On Windows, make sure RTools is installed.
  2. The DatabaseConnector and SqlRender packages require Java. Java can be downloaded from http://www.java.com. Once Java is installed, ensure that Java is being pathed correctly. Under environment variables in the control panel, ensure that the jvm.dll file is added correctly to the path.
  3. In R, use the following commands to download and install CohortMethod:
install.packages("drat")
drat::addRepo("OHDSI")
install.packages("CohortMethod")
  1. Optionally, run this to check if CohortMethod was correctly installed:
connectionDetails <- createConnectionDetails(dbms="postgresql",
                                             server="my_server.org",
                                             user = "joe",
                                             password = "super_secret")

checkCmInstallation(connectionDetails)

Where dbms, server, user, and password need to be changed to the settings for your database environment. Type

?createConnectionDetails

for more details on how to configure your database connection.

Getting Involved

License

CohortMethod is licensed under Apache License 2.0

Development

CohortMethod is being developed in R Studio.

###Development status Build Status codecov.io

CohortMethod is actively being used in several studies and is ready for use.

Acknowledgements

  • This project is supported in part through the National Science Foundation grant IIS 1251151.

cohortmethod's People

Contributors

anthonysena avatar approximateidentity avatar fdefalco avatar msuchard avatar phillipsundin avatar schuemie avatar sirpoovey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.