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/