BookmarkSubscribeRSS Feed
AKPAN
Calcite | Level 5

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.

3 REPLIES 3
Reeza
Super User

Post the code you've tried and 'doesn't work'. 

And explain what that means. 

AKPAN
Calcite | Level 5

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

Reeza
Super User

You missed the part about explaining what doesn't work....at the bare minimum include your log.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is ANOVA?

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.

Discussion stats
  • 3 replies
  • 2074 views
  • 0 likes
  • 2 in conversation