Hello,
I raw this model:
proc mixed data=grouping ;
class id b;
model y=time|b/outpred=Pred;
random intercept /sub=id type=un;
store out=MixedModel;
lsmeans b/ at time=(0) diff;
lsmeans b/ at time=(3) diff;
run;
I can use PROC PLM to visualize the effectplot:
proc plm restore=MixedModel;
effectplot fit(x=time plotby=b)/clm;
effectplot slicefit(x=time sliceby=b)/clm;
run;
Two questions:
1) Is there a way to change how PROC PLM's visuals look? I want to change the formatting!
I also tried this
proc sgplot data=pred;
band x=timelower=lower upper=upper/group=b transparency=.75;
series x=time y=pred/group=b;
run;
However, this graph looks different than the PLM graph.
T
There are two kinds of predicted values. The OUTPRED= option outputs the predicted that incorporate the random intercept estimates for each subject. The OUTPREDM= option outputs the marginal (averaged) predictions. These are the same predicted values that you obtain from the STORE statement and PROC PLM.
So if you want to get the PROC PLM graph, use OUTPREDM=.
For details, an example, and more explanation, see "Visualize a mixed model that has repeated measures or random coefficients," especially the last section.
Show us the plots. Describe what you don't like. Provide screen captures by clicking on the "Insert Photos" and not by attachments.
There are two kinds of predicted values. The OUTPRED= option outputs the predicted that incorporate the random intercept estimates for each subject. The OUTPREDM= option outputs the marginal (averaged) predictions. These are the same predicted values that you obtain from the STORE statement and PROC PLM.
So if you want to get the PROC PLM graph, use OUTPREDM=.
For details, an example, and more explanation, see "Visualize a mixed model that has repeated measures or random coefficients," especially the last section.
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!
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.