ginteff

R package

Jesper N. Wulff

ginteff is an R port of the Stata ginteff command by Marius Radean (The Stata Journal, 2023). It computes two- and three-way interaction effects — via partial derivatives or first differences — for fitted regression models, with delta-method standard errors.

Built as a thin wrapper around marginaleffects, it supports arbitrary variance–covariance specifications ("HC3", clustered, or a user-supplied sandwich matrix), which propagate through to the final interaction-effect standard errors.

# install.packages("remotes")
remotes::install_github("jespernwulff/ginteff")

See also