Skip to main content

Build Status Coverage Status

DAME-FLAME

A Python package for performing matching for observational causal inference on datasets containing discrete covariates

Documentation here

DAME-FLAME is a Python package for performing matching for observational causal inference on datasets containing discrete covariates. It implements the Dynamic Almost Matching Exactly (DAME) and Fast, Large-Scale Almost Matching Exactly (FLAME) algorithms, which match treatment and control units on subsets of the covariates. The resulting matched groups are interpretable, because the matches are made on covariates, and high-quality, because machine learning is used to determine which covariates are important to match on.

Installation

Dependencies

dame-flame requires Python version (>=3.6). Install from here if needed.

  • pandas>=0.11.0
  • numpy>= 1.16.5
  • scikit-learn>=0.23.2

If your python version does not have these packages, install from here.

To run the examples in the examples folder (these are not part of the package), Jupyter Notebooks or Jupyter Lab (available here) and Matplotlib (>=2.0.0) is also required.

User Installation

Download from PyPi via $ pip install dame-flame

Source Code

The source code repository, featuring tests, and an issue tracker is here

Citation

If you use dame-flame in a scientific publication, we would appreciate citations:

Neha R. Gupta, Vittorio Orlandi, Chia-Rui Chang, Tianyu Wang, Marco Morucci, Pritam Dey, Thomas J. Howell, Xian Sun, Angikar Ghosal, Sudeepa Roy, Cynthia Rudin, Alexander Volfovsky (2025). dame-flame: A Python Package Providing Fast Interpretable Matching for Causal Inference. Journal of Statistical Software, 113(2), 1-26. https://doi.org/10.18637/jss.v113.i02

Metadata

Release files for dame-flame 0.81

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dame-flame 0.81
File Size Uploaded
dame_flame-0.81.tar.gz 27.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dame-flame 0.81
File Interpreter ABI Platform
dame_flame-0.81-py3-none-any.whl Python 3 none any Details

Total release size: 58.8 kB

Release files / dame_flame-0.81.tar.gz

Download URL dame_flame-0.81.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3cd4e07f118643c20219c539170c91e65c2e681d0496ef649eb016f0be585294
BLAKE2b-256 checksum
How to use checksums
c67374a4aacbe2f8c6b97e323262e69f82eaee218ec20b633a3b77638e00f583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release files / dame_flame-0.81-py3-none-any.whl

Download URL dame_flame-0.81-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acb0b26f9173ff5027cc8a1865b1767e5f07f4f28e27bfdc137e110d0f897694
BLAKE2b-256 checksum
How to use checksums
c816816a27deea9c536c5fe074a6895e8f76239c9e1c2a44523d591a68ee0aad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.81 This release

2 release files

0.71

2 release files

0.61

2 release files

0.51

2 release files

0.41

2 release files

0.32

2 release files

0.31

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page