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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.