What is the best way to visualise an interaction between two categorial variables controlled for a third continous variable.


model = lm(mpg ~ wt + (factor(am) * factor(vs)), data=mtcars)

I have model where the interaction between two dichotomous variables (TRUE/FALSE) only appears if a third continous variable is controlled for.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.