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
I tried the follwoing:
Code:
logit y x1##x2##x3, or margins x2#x1, by (x3) marginsplot, by(x3)
Any clues on how could I represent it?
Thank you very much for your help,
0 Response to Plotting logistic regression with triple interaction
Post a Comment