Comprehensive, User-Friendly Toolkit for Probing Interactions
Overview
A suite of functions for conducting and interpreting analysis of statistical interaction in regression models that was formerly part of the 'jtools' package. Functionality includes visualization of two- and three-way interactions among continuous and/or categorical variables as well as calculation of "simple slopes" and Johnson-Neyman intervals (see e.g., Bauer & Curran, 2005 doi:10.1207/s15327906mbr4003_5). These capabilities are implemented for generalized linear models in addition to the standard linear regression context.
A special thanks to Github user @olivroy for contributing a number of mostly
under-the-hood updates prior to this release.
Enhancements:
sim_slopes()now supports non-continuous variables in thepredargument.sim_slopes()now has anatargument, allowing you to specify an exact,
perhaps non-centered, level for variables not involved in the interaction.
interact_plot()now has provisional support for factor predictors (pred).
Users will receive a message because of the possibility for unexpected
behavior. cat_plot() likewise has support for continuous moderators. (#54)
- Website and some documentation have been revamped and upgraded.
- Users can now change the axis labels for
johnson_neyman()plots via the
arguments y.label and modx.label. (#56)
Show all changes in 1.2.0Hide the rest of the changes in 1.2.0
- Models produced by the
panelrpackage are better supported.
Bug fixes:
johnson_neyman()now handles non-syntactic variable names formodx
correctly. (#56)
sim_slopes()no longer displays results with factor moderators in the
reverse order of the factor's levels. (#55)
probe_interactions()no longer errors when certain combinations of arguments
are provided. (#50)
sim_slopes()no longer errors when ordered factors are moderators.
Thanks to Jonathan Zadra for suggesting the fix. (#42)
sim_slopes()no longer errors when givenmerModTestobjects.
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespace in Imports field not imported from: ‘broom’ All declared Imports should be used.
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 13 (1 internal)
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 56%
- Documented parameters
- 99%
- Return-value docs
- 67%
- Help pages citing references
- 31%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 36
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
12 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/jacob-long/interactions on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
pkgdown site last built 2024-07-31
Show all practicesHide 3 practices
Dependencies
Installing interactions adds 45 packages (21 with compiled code, 45 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, broom.mixed 4.9 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.2.0Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.1.52021-07-02 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.1.32020-04-04 · diff ↗
- 1.1.12019-07-05 · diff ↗ ·
removed 4 exports
glance.sim_margins, glance.sim_slopes, tidy.sim_margins, tidy.sim_slopesadded 2 exports
glance, tidy - 1.1.02019-04-28 · diff ↗ ·
added 4 exports
glance.sim_margins, tidy.sim_margins, as_huxtable.sim_margins, sim_margins - RR 3.6.0 released · 2019-04-26
- 1.0.02019-02-19
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2019-02-19
- Total releases
- 6 / 7 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 3.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("interactions")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.interactions.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.