Skip to content
This package was removed from CRAN on 2025-11-27. Its history is shown below.
Reason: issues were not corrected despite reminders
Details below reflect version 1.0, its last release before removal.

MDEI

1.0

Implementing the Method of Direct Estimation and Inference

0packages depend
downloads / year
test coverage
checks pass

Overview

About
Maintained by Marc Ratkovic1 releasesCRAN page ↗

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.

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
5
Dependencies · direct

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
90%
Return-value docs
100%
References docs
25%

Downloads

Daily download trend is not available in this view yet.
Also on363 r2u13 autocran

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
Imports (5)
grDevicesMASSrangerRcppsplines2
LinkingTo (2)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Contributors (1)
Contributor
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • archivedRemoved from CRAN
    2025-11-27
    issues were not corrected despite reminders
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0
    2023-05-04
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

Total releases
1
License
GPL (>= 2) OSI
Minimum R
≥ 3.6.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MDEI")
Ratkovic, M., Tingley, D., & Kavi, N. (n.d.). MDEI: Implementing the Method of Direct Estimation and Inference (Version 1.0) [Computer software]. Retrieved August 14, 2026, from https://CRAN.R-project.org/package=MDEI

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MDEI version 1.0 [Data set]. HJJB, LLC. Data release v2026-08-13. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-13, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy