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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dame_flame-0.81.tar.gz | 27.0 kB | Without provenance | Details for dame_flame-0.81.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dame_flame-0.81-py3-none-any.whl | Python 3 | none | any | Details for dame_flame-0.81-py3-none-any.whl |
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
|
Security for dame-flame 0.81
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.