causal-curve

causal-curve: A Python Causal Inference Package to Estimate Causal Dose-Response Curves - Published in JOSS (2020)

https://github.com/ronikobrosly/causal-curve

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Scientific Fields

Economics Social Sciences - 85% confidence
Artificial Intelligence and Machine Learning Computer Science - 83% confidence
Last synced: 4 months ago · JSON representation

Repository

A python package with tools to perform causal inference using observational data when the treatment of interest is continuous.

Basic Info
  • Host: GitHub
  • Owner: ronikobrosly
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 3.56 MB
Statistics
  • Stars: 279
  • Watchers: 6
  • Forks: 18
  • Open Issues: 4
  • Releases: 35
Created over 5 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

causal-curve

build status codecov DOI

Python tools to perform causal inference when the treatment of interest is continuous.

Table of Contents

Overview

(Version 1.0.0 released in January 2021!)

There are many implemented methods to perform causal inference when your intervention of interest is binary, but few methods exist to handle continuous treatments.

This is unfortunate because there are many scenarios (in industry and research) where these methods would be useful. For example, when you would like to:

  • Estimate the causal response to increasing or decreasing the price of a product across a wide range.
  • Understand how the number of minutes per week of aerobic exercise causes positive health outcomes.
  • Estimate how decreasing order wait time will impact customer satisfaction, after controlling for confounding effects.
  • Estimate how changing neighborhood income inequality (Gini index) could be causally related to neighborhood crime rate.

This library attempts to address this gap, providing tools to estimate causal curves (AKA causal dose-response curves). Both continuous and binary outcomes can be modeled against a continuous treatment.

Installation

Available via PyPI:

pip install causal-curve

You can also get the latest version of causal-curve by cloning the repository::

git clone -b main https://github.com/ronikobrosly/causal-curve.git cd causal-curve pip install .

Documentation

Documentation, tutorials, and examples are available at readthedocs.org

Contributing

Your help is absolutely welcome! Please do reach out or create a feature branch!

Citation

Kobrosly, R. W., (2020). causal-curve: A Python Causal Inference Package to Estimate Causal Dose-Response Curves. Journal of Open Source Software, 5(52), 2523, https://doi.org/10.21105/joss.02523

References

Galagate, D. Causal Inference with a Continuous Treatment and Outcome: Alternative Estimators for Parametric Dose-Response function with Applications. PhD thesis, 2016.

Hirano K and Imbens GW. The propensity score with continuous treatments. In: Gelman A and Meng XL (eds) Applied bayesian modeling and causal inference from incomplete-data perspectives. Oxford, UK: Wiley, 2004, pp.73–84.

Imai K, Keele L, Tingley D. A General Approach to Causal Mediation Analysis. Psychological Methods. 15(4), 2010, pp.309–334.

Kennedy EH, Ma Z, McHugh MD, Small DS. Nonparametric methods for doubly robust estimation of continuous treatment effects. Journal of the Royal Statistical Society, Series B. 79(4), 2017, pp.1229-1245.

Moodie E and Stephens DA. Estimation of dose–response functions for longitudinal data using the generalised propensity score. In: Statistical Methods in Medical Research 21(2), 2010, pp.149–166.

van der Laan MJ and Gruber S. Collaborative double robust penalized targeted maximum likelihood estimation. In: The International Journal of Biostatistics 6(1), 2010.

van der Laan MJ and Rubin D. Targeted maximum likelihood learning. In: ​U.C. Berkeley Division of Biostatistics Working Paper Series, 2006.

Owner

  • Name: Roni Kobrosly
  • Login: ronikobrosly
  • Kind: user
  • Location: Washington DC
  • Company: DrFirst

data person 💻

JOSS Publication

causal-curve: A Python Causal Inference Package to Estimate Causal Dose-Response Curves
Published
August 31, 2020
Volume 5, Issue 52, Page 2523
Authors
Roni W. Kobrosly ORCID
Department of Environmental Medicine and Public Health, Icahn School of Medicine at Mount Sinai, New York, NY, USA, Flowcast, 44 Tehama St, San Francisco, CA, USA
Editor
Olivia Guest ORCID
Tags
causal inference causality machine learning

GitHub Events

Total
  • Watch event: 6
Last Year
  • Watch event: 6

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 103
  • Total Committers: 4
  • Avg Commits per committer: 25.75
  • Development Distribution Score (DDS): 0.039
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Roni Kobrosly r****y@g****m 99
dirk d****r@g****m 2
rkobrosly r****y@d****m 1
Roni Kobrosly r****y@R****l 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 25
  • Total pull requests: 23
  • Average time to close issues: 21 days
  • Average time to close pull requests: about 5 hours
  • Total issue authors: 10
  • Total pull request authors: 2
  • Average comments per issue: 2.52
  • Average comments per pull request: 0.61
  • Merged pull requests: 23
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 3 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ronikobrosly (13)
  • athammad (2)
  • nsankar (2)
  • v6l4188 (2)
  • juandavidgutier (1)
  • dirknbr (1)
  • AlexMa011 (1)
  • alexjonesphd (1)
  • NiklasTR (1)
  • gabeschulman (1)
Pull Request Authors
  • ronikobrosly (21)
  • dirknbr (4)
Top Labels
Issue Labels
bug (7) documentation (5) enhancement (4) question (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 7,487 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 2
    (may contain duplicates)
  • Total versions: 50
  • Total maintainers: 1
proxy.golang.org: github.com/ronikobrosly/causal-curve
  • Versions: 33
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.5%
Dependent repos count: 5.7%
Last synced: 4 months ago
pypi.org: causal-curve

A python library with tools to perform causal inference using observational data when the treatment of interest is continuous.

  • Versions: 17
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 7,487 Last month
Rankings
Stargazers count: 4.0%
Forks count: 8.9%
Dependent packages count: 10.1%
Average: 10.8%
Dependent repos count: 11.6%
Downloads: 19.3%
Maintainers (1)
Last synced: 4 months ago

Dependencies

docs/requirements.txt pypi
  • black *
  • coverage *
  • future *
  • joblib *
  • numpy *
  • numpydoc *
  • pandas *
  • patsy *
  • progressbar2 *
  • pygam *
  • pytest *
  • python-dateutil *
  • python-utils *
  • pytz *
  • scikit-learn *
  • scipy *
  • six *
  • sphinx_rtd_theme *
  • statsmodels *
requirements.txt pypi
  • black *
  • coverage *
  • future *
  • joblib *
  • numpy *
  • numpydoc *
  • pandas *
  • patsy *
  • progressbar2 *
  • pygam *
  • pytest *
  • python-dateutil *
  • python-utils *
  • pytz *
  • scikit-learn *
  • scipy *
  • six *
  • sphinx_rtd_theme *
  • statsmodels *
setup.py pypi
  • black *
  • coverage *
  • future *
  • joblib *
  • numpy *
  • numpydoc *
  • pandas *
  • patsy *
  • progressbar2 *
  • pygam *
  • pytest *
  • python-dateutil *
  • python-utils *
  • pytz *
  • scikit-learn *
  • scipy *
  • six *
  • sphinx_rtd_theme *
  • statsmodels *