MDEI

Implementing the Method of Direct Estimation and Inference

CRAN Package

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.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 557 times in the last 30 days. Not bad! The download count is somewhere between 'small-town buzz' and 'moderate academic conference'. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 3 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsFeb 9, 2025
0 downloadsFeb 10, 2025
0 downloadsFeb 11, 2025
0 downloadsFeb 12, 2025
0 downloadsFeb 13, 2025
0 downloadsFeb 14, 2025
2 downloadsFeb 15, 2025
2 downloadsFeb 16, 2025
54 downloadsFeb 17, 2025
5 downloadsFeb 18, 2025
6 downloadsFeb 19, 2025
57 downloadsFeb 20, 2025
2 downloadsFeb 21, 2025
4 downloadsFeb 22, 2025
66 downloadsFeb 23, 2025
4 downloadsFeb 24, 2025
4 downloadsFeb 25, 2025
54 downloadsFeb 26, 2025
3 downloadsFeb 27, 2025
3 downloadsFeb 28, 2025
56 downloadsMar 1, 2025
3 downloadsMar 2, 2025
4 downloadsMar 3, 2025
64 downloadsMar 4, 2025
7 downloadsMar 5, 2025
4 downloadsMar 6, 2025
5 downloadsMar 7, 2025
53 downloadsMar 8, 2025
1 downloadsMar 9, 2025
3 downloadsMar 10, 2025
8 downloadsMar 11, 2025
13 downloadsMar 12, 2025
54 downloadsMar 13, 2025
3 downloadsMar 14, 2025
10 downloadsMar 15, 2025
3 downloadsMar 16, 2025
0 downloadsMar 17, 2025
0 downloadsMar 18, 2025
0 downloadsMar 19, 2025
0 downloadsMar 20, 2025
0 downloadsMar 21, 2025
0 downloadsMar 22, 2025
1
66

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 7,618 times in the last 365 days. That's a lot of interest! Someone might even write a blog post about it. The day with the most downloads was Feb 23, 2025 with 66 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports4 packages
  • Linking To2 packages