Package: MDEI 1.0

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.

Authors:Marc Ratkovic [aut, cre], Dustin Tingley [ctb], Nithin Kavi [aut]

MDEI_1.0.tar.gz
MDEI_1.0.zip(r-4.5)MDEI_1.0.zip(r-4.4)MDEI_1.0.zip(r-4.3)
MDEI_1.0.tgz(r-4.5-x86_64)MDEI_1.0.tgz(r-4.5-arm64)MDEI_1.0.tgz(r-4.4-x86_64)MDEI_1.0.tgz(r-4.4-arm64)MDEI_1.0.tgz(r-4.3-x86_64)MDEI_1.0.tgz(r-4.3-arm64)
MDEI_1.0.tar.gz(r-4.5-noble)MDEI_1.0.tar.gz(r-4.4-noble)
MDEI_1.0.tgz(r-4.4-emscripten)MDEI_1.0.tgz(r-4.3-emscripten)
MDEI.pdf |MDEI.html
MDEI/json (API)
NEWS

# Install 'MDEI' in R:
install.packages('MDEI', repos = c('https://ratkovic.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ratkovic/mdei/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

3.00 score 679 downloads 2 exports 8 dependencies

Last updated 2 years agofrom:25ae397570. Checks:12 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 07 2025
R-4.5-win-x86_64OKMar 07 2025
R-4.5-mac-x86_64OKMar 07 2025
R-4.5-mac-aarch64OKMar 07 2025
R-4.5-linux-x86_64OKMar 07 2025
R-4.4-win-x86_64OKMar 07 2025
R-4.4-mac-x86_64OKMar 07 2025
R-4.4-mac-aarch64OKMar 07 2025
R-4.4-linux-x86_64OKMar 07 2025
R-4.3-win-x86_64OKMar 07 2025
R-4.3-mac-x86_64OKMar 07 2025
R-4.3-mac-aarch64OKMar 07 2025

Exports:coverPlotMDEI

Dependencies:latticeMASSMatrixrangerRcppRcppArmadilloRcppEigensplines2