Dear all.
Wish you all well.
Can anyone please enlighten me on why is the result from lsmeans statement and that from slice statement different?
Thank you very much.
proc genmod data=temp order=internal plots=all;
class id time var1;
MODEL y= var1 time var1*time / type3 dist=gamma link=log;
lsmeans time*var1 / om diff ilink cl plots=all;
slice time*var1 / sliceby=var1 ilink diff nof;
repeated subject=id / type=cs;
run;
Hi KC,
In what sense are they different? The SLICE command should give all the differences between timepoints for each level of var1. The differences are in the lsmeans diffs, as well, but they are scattered through out the output. Excuse me if I am missing your point--a short example of how the outputs differ would help in explaining.
Steve Denham
Hi KC,
In what sense are they different? The SLICE command should give all the differences between timepoints for each level of var1. The differences are in the lsmeans diffs, as well, but they are scattered through out the output. Excuse me if I am missing your point--a short example of how the outputs differ would help in explaining.
Steve Denham
Hi Steve.
Yes, you are right. The estimates from both lsmeans and lsmeans are the same. My mistake due to oversight.
Thank you very much.
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.