BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bigban777
Obsidian | Level 7

Hi,

I used PROC GLM for ANOVA.

 

ods html style=statistical;
ods graphics on;
title "Anova with Plots";
PROC GLM DATA = smoke3 order=data;;
	CLASS amt;
	MODEL fef=amt/solution;
	CONTRAST 'ns vs ps' amt 1 -1 0 0 0 0;
	CONTRAST 'ns vs ave inhale' amt 1 0 0 -.1 -.7 -.2;
	CONTRAST '# of smo' amt 0 0 0 -14 -4 18;
	CONTRAST 'ps vs ms' amt 0 -1 0 0 1 0;
	ESTIMATE 'ns vs ave inh' amt 1 0 0 -.1 -.7 -.2;
	ESTIMATE 'smo mn' intercept 70 amt 0 0 0 10 20 40 / divisor = 70;
	ESTIMATE 'nonsmo mn vs smo mn' amt 35 35 0 -10 -20 -40 / divisor = 70;
	ESTIMATE 'ps vs ms' intercept 70 amt 0 30 0 0 40 0 / divisor =70 ;
	lsmeans amt/pdiff adjust=tukey;;
run;
quit;
ods graphics off;
ods html close;

And i got following result:

DiffPlot.png

 

Question: how to interpret my graph?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

See p. 3 of "Interpreting the Differences Among LSMEANS in Generalized Linear Models" by Robin High. 

 

Briefly, the blue lines represent pairs of groups whose mean differences are significantly different from zero. (That is, the means are sig diff from each other.) The red lines represent pairs that are NOT significantly different from zero. In your example, the mean difference between the NI and PS groups are not sig diff. Similarly, the mean difference between the NI-LS groups and the LS-PS groups are not sig different. The other pairwise comparison of means are significantly different from each other.

View solution in original post

1 REPLY 1
Rick_SAS
SAS Super FREQ

See p. 3 of "Interpreting the Differences Among LSMEANS in Generalized Linear Models" by Robin High. 

 

Briefly, the blue lines represent pairs of groups whose mean differences are significantly different from zero. (That is, the means are sig diff from each other.) The red lines represent pairs that are NOT significantly different from zero. In your example, the mean difference between the NI and PS groups are not sig diff. Similarly, the mean difference between the NI-LS groups and the LS-PS groups are not sig different. The other pairwise comparison of means are significantly different from each other.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 810 views
  • 3 likes
  • 2 in conversation