Running counterfactuals on a regression with interactions

I think you are looking for modelmatrix(sm)

1 Like