Causal Inference Covariate Matching
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dame_flame-0.81.tar.gz.
File metadata
- Download URL: dame_flame-0.81.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cd4e07f118643c20219c539170c91e65c2e681d0496ef649eb016f0be585294
|
|
| MD5 |
09de97a6b78c18b7d24ffeb4bc0d21ef
|
|
| BLAKE2b-256 |
c67374a4aacbe2f8c6b97e323262e69f82eaee218ec20b633a3b77638e00f583
|
File details
Details for the file dame_flame-0.81-py3-none-any.whl.
File metadata
- Download URL: dame_flame-0.81-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acb0b26f9173ff5027cc8a1865b1767e5f07f4f28e27bfdc137e110d0f897694
|
|
| MD5 |
1452bde759964722ec89958ab66c13a6
|
|
| BLAKE2b-256 |
c816816a27deea9c536c5fe074a6895e8f76239c9e1c2a44523d591a68ee0aad
|