11-18-2011 08:40 PM
My colleague has performed an APIM analysis in proc mixed, and obtained a significant three-way interaction. The outcome variable is continuous (satisfaction). Two predictors are continuous (perceptions and drinking) and one predictor is dichotomous (gender).
I would like to graph this 3-way interaction (perception*drinking*gender). Preferrably, I would like two windows, one displaying the 2-way interaction (perceptions and drinking) for males and one window for females.
Do anyone have any tips to help me graph this interaction?
11-21-2011 03:08 PM
Thanks so much. However, those plots do not model the outcome variable (satisfaction). They just give a scatterplot of the data of two variables (by the third variable, gender). The interaction plot should give us two lines that intercept each other. The plots outputted by the code would only give us one line (the relationship between perception and drinking).
11-22-2011 08:59 PM
Maybe you need this:
symbol i=j v=none r=200;
idno is number of patient.
r= is repeat 200 times which is 200 patients.
i.e. How many patients you have ,how many repeated times(200)