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.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.