dame-flame is a Python package for performing matching for observational causal inference on datasets containing discrete covariates. This package 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. DAME solves an optimization problem that matches units on as many covariates as possible, prioritizing matches on important covariates. FLAME approximates the solution found by DAME via a much faster backward feature selection procedure. The package provides several adjustable parameters to adapt the algorithms to specific applications, and can calculate treatment effect estimates after matching. Descriptions of these parameters, details on estimating treatment effects, and further examples, can be found in the documentation at https://almost-matching-exactly.github.io/DAME-FLAME-Python-Package/
翻译:dame-flame是一个Python软件包,用于对包含离散协变量的数据集进行观察性因果推断中的匹配。该软件包实现了动态几乎精确匹配(DAME)和快速大规模几乎精确匹配(FLAME)算法,这些算法在协变量的子集上对处理组和对照组单元进行匹配。由于匹配基于协变量进行,且通过机器学习确定哪些协变量对匹配重要,因此生成的匹配组具有可解释性和高质量。DAME解决了一个优化问题,即在尽可能多的协变量上匹配单元,并优先匹配重要协变量。FLAME通过更快的反向特征选择过程近似DAME的求解结果。该软件包提供了多个可调参数以适应特定应用,并可在匹配后计算处理效应估计。这些参数的描述、处理效应估计的详细信息及更多示例,可在文档https://almost-matching-exactly.github.io/DAME-FLAME-Python-Package/ 中找到。