How do I seperate means using the lsmeans? I saw this Paper 142-2014 Making Comparisons Fair: How LS-Means Unify the Analysis of Linear Models Weijie Cai, SAS Institute Inc. In the material lsmeans was used along with 'lines'. but it did not work when I tried using it.
thanks
Akpan.
Post the code you've tried and 'doesn't work'.
And explain what that means.
PROC GLM DATA=AKT ALPHA=.05;
CLASS GRP;
MODEL SPLEEN=GRP BW/ SOLUTION;
LSMEANS GRP/ PDIFF=ALL ADJ=TUKEY LINES;
RUN;
AKT is the data to be analysed, GRP is independent variable and BW is the body weight which was used as a covariate to run the analysis.
thanks
You missed the part about explaining what doesn't work....at the bare minimum include your log.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.