0
$\begingroup$

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

e.g.

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.

$\endgroup$

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.