BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
s4m7340
Calcite | Level 5

Hello! Is there any way to create an means plot with a repeated measures design with prox mixed like so? A manually produced categorical line plot would work as well. I also tried manually making a line plot with sgplot and changing the tick labels in to categories with no luck. Here is what I am going for:

 

s4m7340_2-1603932830899.png

 

Here is a snippet of my data:

s4m7340_0-1603933514280.png

 

 

Here is my code so far:

 

s4m7340_1-1603932681598.png

The code did not produce the intended plot. Once again, a small example of line plot with categories on the x axis would work, and I could go from there! Thanks ahead of time!

1 ACCEPTED SOLUTION
4 REPLIES 4
s4m7340
Calcite | Level 5
What would you recommend as a title change? Also, as soon as I figure out
how to move posts, I will!
SteveDenham
Jade | Level 19

There are at least two different ways to go about this.  First would be to use the results of your STORE statement, and in the PROC PLM statements include an EFFECTPLOT statement.  Second would be to change to PROC GLIMMIX and use a plots=meanplots option in the LSMEANS statement.  This is more direct and is also available in PROC PLM (so you would not have to recode your PROC MIXED into PROC GLIMMIX, as you already have a store).

 

SteveDenham

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4 replies
  • 694 views
  • 0 likes
  • 3 in conversation