Dear all,

I ran a logistic regression with a triple interaction for three independent and dichotomous variables. For simplicity, let's name them x1 (0,1); x2 (0,1) and x3 (0,1).
As it becomes quite challenging to process and easly interpret the regression output I'd like to create a visual representation of it. I guess plotting the predicted probabilities?

In a similar post, I found this solution:

Code:
logit y x1##x2, or
margins x2#x1
marginsplot
However, this does not seem to work when the third variable is added to the interaction.

I tried the follwoing:
Code:
logit y x1##x2##x3, or
margins x2#x1, by (x3)
marginsplot, by(x3)
But I am not sure if that is correct.

Any clues on how could I represent it?

Thank you very much for your help,