Giter Site home page Giter Site logo

omop-variation's Introduction

omop-variation

omop-variation is a tool to identify and evaluate heterogeneity in decision-making processes.

Background

Different individuals can make different decisions, even when faced with the same context. This is because decisions are influenced by two types of factors: contextual factors common to a given decision-making setup, and agent-specific factors. For instance, in medicine, for a given patient, clinicians may choose different treatment options due to differences in training, opinion, guidelines, and so on. Heterogeneity in clinical decisions occur due to the agent-specific factors, even when the contextual factors (the patient) are the same.

This repository contains algorithms to identify the contexts on which this heterogeneity occurs. For instance, using these algorithms, we can answer questions like:

  • For which types of patients do doctors consistently make different decisions on?
  • For which types of product categories do consumers have consistent preferences on?

For more background on this topic, and for a complete exposition of the algorithms contained in this repository, refer to Identifying Heterogeneity in Decision-Making.

Dependencies

The repository uses the libraries numpy and sklearn. It also requires gurobipy, which academics may request a license for by following the installation instructions here.

Usage

The algorithms can be applied to any general decision-making process with contextual factors X, a binary decision y, and the agent / decision-maker a. There are four algorithms, implemented in Models.py.

Each estimator follows the scikit-learn API specification. Usage is straightforward, as shown in the code block below:

# Train outcome model
outcome_model = RandomForestClassifier().fit(X, y)

# Identify regions of X with heterogeneity
model = IterativeRegionEstimator(region_modelclass=RandomForestRegressor(), beta=0.25)
model.fit(X, y, a, outcome_model)
region = model.predict(X)

For more examples, see Example.py. A complete documentation of each estimator and their parameters can be found here.

License

MIT

omop-variation's People

Contributors

justinlimkz avatar moberst 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.