BookmarkSubscribeRSS Feed
kivester
Obsidian | Level 7

I am using PROC GLIMMIX (SAS v9.3) to fit a mixed model in which I am most interested in the relationship between the outcome and a continuous covariate. I can get various graphical displays from PROC PLM, but I am having trouble finding anyway to plot the original observations on the effectplots. This is so easy in PROC GENMOD, I can't believe there isn't a way to acheive this with a model fit in GLIMMIX.

 

Thank you for any help!

Katy

 

1 REPLY 1
Rick_SAS
SAS Super FREQ

PROC PLM doesn't have accesss to the original data, which is why it behaves differently. PLM only has access to the model.

In fact, the documentation for the OBS option in the EFFECTPLOT statement states "OBS<(obs-options)>
displays observations on the effect plots. An input data set is required; hence the OBS option is not available with PROC PLM."

 

Just use an OUTPUT statement to create a SAS data set that contains the predicted values. There are several predictions and scales (BLUP, ILINK,...) to choose from. Then you can sort by the covariate and use PROC SGPLOT to overlay the SERIES plot of the predictors on a SCATTER plot of the observations. 

SAS Innovate 2025: Register Now

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!

What is ANOVA?

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.

Discussion stats
  • 1 reply
  • 1363 views
  • 0 likes
  • 2 in conversation