Software
dcameaipe (R package)
An R package to estimate the Average Interactive Partial Effect (AIPE) and the Difference in Conditional Average Marginal Effects (D-CAME), using flexible (polynomial / B-spline / GAM) functional forms for the treatment, rather than assuming the interaction is linear.
Companion package to Serrano-Serrat, “Quantities of Interest for Interactions and the Pitfalls of Assuming Linear Treatment Effects,” Sociological Science (2026), 13, 945-970.
Installation:
# install.packages("remotes")
remotes::install_github("SerranoSerrat/dcameaipe")
