Interaction effects are ubiquitous in applied statistical modeling, yet their meaningful interpretation remains challenging. The classic Johnson--Neyman (JN) technique (Johnson and Neyman 1936) addresses this challenge for two-way interactions by identifying the regions of a moderator's range over which a focal effect is and is not statistically significant. The int3ract package for R implements the JN technique, extends it to three-way interactions over a two-dimensional moderator grid (JN3), and extends both to Bayesian models by working on posterior draws rather than point estimates. The package has a single entry point, the generic function JN(), which dispatches on the fitted object: models supplying point estimates and a covariance matrix are analyzed with Wald tests, objects supplying draws as conditional posterior distributions. Methods are provided for lm(), glm(), lme4, lavaan, RSiena and multiSiena objects, and for matrices of posterior draws; support for any further model class is added by writing a single jn_input() method, so that estimators from basically any package can be supported. Results are classed objects whose summary() method reports the regions of significance directly and whose plot() method draws shaded confidence bands (two-way) or crosshatched heatmaps (three-way), each accompanied by a panel showing how much data support each part of the moderator range, or the same regions as fans of simple slopes of the outcome. The package is designed to encourage richer, region-specific reporting of interaction effects in place of the conventional single-slope spotlight approach.
翻译:暂无翻译