interflex: Estimation, Diagnostics and Visualization of Conditional Marginal Effects

Performs estimation, diagnostics, and visualization of conditional marginal effects and group average treatment effects of a treatment on an outcome across different values of a moderator. Optionally integrates with the 'mlr3extralearners' package for additional machine learning backends compatible with the double machine learning estimators. 'mlr3extralearners' is not on CRAN but can be obtained from <https://github.com/mlr-org/mlr3extralearners>.

Version: 1.4.0
Depends: R (≥ 3.5.0)
Imports: ggplot2 (≥ 2.1.0), sandwich (≥ 2.3-4), Lmoments (≥ 1.2-3), doFuture, doRNG, foreach (≥ 1.4.3), mgcv (≥ 1.8-16), lfe (≥ 2.6-2291), gridExtra, grid, ggplotify, fixest, RColorBrewer, pcse, gtable, MASS, mvtnorm, pROC, ModelMetrics, lmtest, AER, future, splines, glmnet, grf, DoubleML, mlr3, mlr3learners, data.table, paradox, parallelly, cli, progressr
Suggests: mlr3tuning, nnet, mlr3extralearners, lightgbm, xgboost, ranger, testthat (≥ 3.0.0)
Published: 2026-04-10
DOI: 10.32614/CRAN.package.interflex
Author: Yiqing Xu [aut, cre], Jens Hainmueller [aut], Jonathan Mummolo [aut], Tianzhu Qin [aut], Jiehan Liu [aut], Ziyi Liu [aut]
Maintainer: Yiqing Xu <yiqingxu at stanford.edu>
BugReports: https://github.com/xuyiqing/interflex/issues
License: MIT + file LICENSE
URL: https://yiqingxu.org/packages/interflex/, https://github.com/xuyiqing/interflex
NeedsCompilation: no
Additional_repositories: https://mlr-org.r-universe.dev
Materials: NEWS
In views: CausalInference
CRAN checks: interflex results

Documentation:

Reference manual: interflex.html , interflex.pdf

Downloads:

Package source: interflex_1.4.0.tar.gz
Windows binaries: r-devel: interflex_1.2.8.zip, r-release: interflex_1.2.8.zip, r-oldrel: interflex_1.4.0.zip
macOS binaries: r-release (arm64): interflex_1.2.8.tgz, r-oldrel (arm64): interflex_1.2.8.tgz, r-release (x86_64): interflex_1.4.0.tgz, r-oldrel (x86_64): interflex_1.4.0.tgz
Old sources: interflex archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=interflex to link to this page.