I have a question about calculating the simple slopes in a proc mixed solution with multiple class variables interacting with a continuous variables. Because of how these class variables are dummy coded, a class*class*continuous variable interaction has left me a little cautious on how to add the SAS output.
Let's say I have a Dependent Variable A and Independent variables X that is continuous and Y and Z that are class variables. Some easy coefficients as they would appear in SAS output are shown below:
Is the question that you want to understand these coefficients and maybe even do "pencil and paper" calculations?
Or is the question that you want to take this model and do predictions and generate plots that could show the slopes computed by the model? Because in this case, you could use PROC PLM to get all of the information about the model.
Is the question that you want to understand these coefficients and maybe even do "pencil and paper" calculations?
Or is the question that you want to take this model and do predictions and generate plots that could show the slopes computed by the model? Because in this case, you could use PROC PLM to get all of the information about the model.
I understand why you say both ... my opinion is different (but that's not to say you are wrong).
There was a time in my life where I could take the model outputs with class variables and make sense of them, but that was a long time ago, and I'm not sure I can explain them now, or that I would even try. With PROC PLM and other tools, my position now is that I can DRAW pictures of the slopes of interest, and see how they vary as the class variable levels change, and this lets me interpret the model easier and quicker than trying to understand the printed estimates in the PROC MIXED output. If anything doesn't look right in the plots, then this is an indication that maybe I specified the model incorrectly (I no longer think that it is SAS doing the wrong calculations). The plots also allow me to explain the model to others.
Actually now I'm not sure it will as LSMEANS/LSMESTIMATE/SLICE all work only on interactions that only include CLASS variables whereas I am trying to calculate a continuous relationship of one IV to the DV at different levels of other CLASS level IVs. Am I reading the Help Center info incorrectly about these statements? I know that I've tried to use LSMEANS before and it won't work, but I thought SLICE might be different. I'll update my post to be more clear.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.