MDEI: Implementing the Method of Direct Estimation and Inference

Causal and statistical inference on an arbitrary treatment effect curve requires care in both estimation and inference. This package, implements the Method of Direct Estimation and Inference as introduced in "Estimation and Inference on Nonlinear and Heterogeneous Effects" by Ratkovic and Tingley (2023) <doi:10.1086/723811>. The method takes an outcome, variable of theoretical interest (treatment), and set of variables and then returns a partial derivative (marginal effect) of the treatment variable at each point along with uncertainty intervals. The approach offers two advances. First, a split-sample approach is used as a guard against over-fitting. Second, the method uses a data-driven interval derived from conformal inference, rather than relying on a normality assumption on the error terms.

Package details

AuthorMarc Ratkovic [aut, cre], Dustin Tingley [ctb], Nithin Kavi [aut]
MaintainerMarc Ratkovic <>
LicenseGPL (>= 2)
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the MDEI package in your browser

Any scripts or data that you put into this service are public.

MDEI documentation built on May 4, 2023, 9:09 a.m.