Skip to content

interactions

1.2.0Package record

Comprehensive, User-Friendly Toolkit for Probing Interactions

1packages dependsuggested by 3
171.7Kdownloads / year
71.9%test coverage
11/13flavors OK

Overview

About

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.

Changes in 1.2.0

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 the pred argument.
  • sim_slopes() now has an at argument, 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 panelr package are better supported.

Bug fixes:

  • johnson_neyman() now handles non-syntactic variable names for modx

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 given merModTest objects.

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 6.5 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 746 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileYes · software entry onlyWebsiteYes · pkgdown
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

171.7K
CRAN downloads in the past year
Rank #1,184 · ~471/day · ~14.3K/mo
Daily download trend is not available in this view yet.
10.9K30 days
28.3K90 days
171.7K1 year
Compare downloads with other packages →
Also on592 r2u2 autocran898 conda_forge

Repository

136Stars
20Forks
35Open issues
2Open PRs
0Releases
925Commits
3Commit identities
rr-packagestatisticssocial-sciencesinteractionsrstatsmoderation
925 commits · Last activity 2024-07-31 · +0.7% stars, 30d
Responsiveness
How these are sampled
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

2025-08-23 · 1322026-09-29 · 136
PracticesBeta

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.

Continuous integration (3)
GitHub ActionsR CMD check workflowAppVeyor

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductIssue templates
Docs source (3)
README.Rmdpkgdown

pkgdown site last built 2024-07-31

Coverage (1)
Coverage reporting
Show all practicesHide 3 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
VS Code
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
3indirect
Imports 1
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0.0 (2019)
Listed in earlier versions (1)
Jacob A.
no longer listed · 1.0.0 to 1.2.0
Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.0Latest
    record
    2024-07-29 · current release · diff ↗
  • 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.1.5
    record
    2021-07-02 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.3
    record
    2020-04-04 · diff ↗
  • 1.1.1
    record
    2019-07-05 · diff ↗ ·
    removed 4 exports
    glance.sim_margins, glance.sim_slopes, tidy.sim_margins, tidy.sim_slopes
    added 2 exports
    glance, tidy
  • 1.1.0
    record
    2019-04-28 · diff ↗ ·
    added 4 exports
    glance.sim_margins, tidy.sim_margins, as_huxtable.sim_margins, sim_margins
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.0
    record
    2019-02-19
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for interactions version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

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