Skip to content

interflex

1.4.1Package record

Estimation, Diagnostics and Visualization of Conditional Marginal Effects

0packages depend
7.9Kdownloads / year
66.3%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.4.1

1. Fixed the kernel estimator's adaptive bandwidth: the normalizer is now the geometric mean of the moderator's density at the observations (Abramson's rule) instead of over the whole density grid, fixing "subscript out of bounds" and "$ operator is invalid" errors on moderators with gaps or long tails.

2. With a fixed bw, kernel windows are now wider than in 1.4.0 (typically 1.5-3x on well-behaved moderators); results under the default cross-validated bw change little.

3. Kernel local fits that are unidentified, fail, or have no usable kernel weights are now dropped with a warning, or the call stops with a clear "Inappropriate bandwidth" error, instead of being filled with zeros or crashing; cross-validation can no longer silently return bw = -Inf; an invalid bw is now rejected with an error.

4. interflex() no longer sets the global option interflex.uniform_ci_warned.

5. inter.test() now documents its return value.

6. interflex() gains bw.select, bw.se.mult and bw.ess.min, which expose the bandwidth selection rules of the kernel estimator ("cv.min", the default; "cv.1se"; "cv.1se.ess"; "ess") and pass them, together with bw, through to the kernel smoothing step of the lasso estimator with a continuous treatment. Use bw.select = "cv.1se" when cross-validation cannot separate the candidate bandwidths.

7. citation("interflex") now lists the methods paper (Hainmueller, Mummolo and Xu 2019), the practical guide to the modern estimators (Liu, Liu and Xu, arXiv:2504.01355, forthcoming as a Cambridge Element), and the package.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
Show 2 earlier changesHide 2 earlier changes
  • NOTE12 OK, 2 NOTE2026-04-11
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4.1
README· In the repository, left out of the releaseVignettes· In the repository, left out of the releaseNEWSYes · 33% structured · mentions 1.4.1Citation fileYes · cites a publicationWebsiteYes
Help pages
16 (11 internal)includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
50%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
38%

Downloads

7.9K
CRAN downloads in the past year
Rank #4,471 · ~22/day · ~662/mo
Daily download trend is not available in this view yet.
84730 days
1.9K90 days
7.9K1 year
Compare downloads with other packages →
Also on857 r2u5 autocran90 c2d4u

Repository

39Stars
14Forks
0Open issues
0Open PRs
2Releases
323Commits
9Commit identities
323 commits · Last activity 2026-09-21 · 0% stars, 30d · Default branch at 1.4.1.9000, ahead of CRAN 1.4.1 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
88%
Median days to close, 50 most recently updated closed issues
144
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-08 · 372026-07-07 · 39
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/xuyiqing/interflex on 2026-10-18.

Docs source (1)
pkgdown
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
lintrRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-15
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: 23 by its own account · at least 22 crediting it in the message
Models named in its commits
  • Claude Opus 4.610 commits · Mar to Apr 2026
  • Claude Fable 5.18 commits · Sep 2026
  • Claude Opus 4.72 commits · Apr 2026
  • Claude Sonnet 52 commits · Sep 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
35 external dependencies (excludes base and recommended)

Installing interflex adds 116 packages (57 with compiled code, 96 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Author, Maintainer since 1.2.8 (2025) · added in 1.2.5
Author · added in 1.2.5
Author · added in 1.4.0
Author · added in 1.2.5
Author · added in 1.4.0
Author · added in 1.2.5

Previously maintained by Ziyi Liu (1.2.5 to 1.2.6) and Yiqing Xu (1.0.2 to 1.1.3).

Releases (10)

Pick two releases to compare their code metrics.

  • 1.4.1Latest
    record
    2026-09-21 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.0
    record
    2026-04-10 · diff ↗ ·
    removed 1 export
    pattern:^[[:alpha:]]+
    added 1 export
    inter.test
  • 1.2.8
    record
    2025-12-17 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.6
    record
    2021-05-18 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2021-05-06
  • 1.2.5
    record
    2021-05-06 · diff ↗ ·
    removed 6 exports
    inter.test, inter.raw, inter.gam, inter.linear, inter.binning, inter.kernel
  • archivedRemoved from CRAN
    2020-12-04
    requires archived package 'lfe'
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.3
    record
    2020-04-23 · diff ↗ ·
    removed 1 export
    inter.plot
    added 3 exports
    interflex, inter.test, inter.linear
  • 1.0.8
    record
    2019-06-20 · diff ↗ ·
    added 1 export
    inter.plot
Show 7 earlier eventsHide 7 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.4
    record
    2018-04-20 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.3
    record
    2017-03-06 · diff ↗ ·
    added 1 export
    pattern:^[[:alpha:]]+
  • 1.0.2
    record
    2017-02-27
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-02-27
Total releases
10 / 9 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-2 in 1.0.8
Additional repositories
mlr-org.r-universe.dev
Minimum R
≥ 3.5.0
Bundled data
179 KB / 1 file
Download size
338 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("interflex")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 interflex version 1.4.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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