BookmarkSubscribeRSS Feed
JUMMY
Obsidian | Level 7

I have a data of this nature. 

data have;
  	input diet : $1. @;
			do i=1 to 7;
			input  cholesterol @;
		output;
	end;
drop i;
datalines;
A: 29 32 26 15 34 15 23
B: 11 30 34 13 27 24 21
C: 22 12 20 7 3 27 4
D: 16 21 13 6 0 9 25
E: 6 2 10 -3 8 1 -4
;
run;

I did run the Tukey Test using the code below:

proc glm data=have;
  class diet;
  model cholesterol=diet;
  means diet / lines tukey;
run;

And I got this output:

 

Tukey.png

 

Can someone explain what this output mean? What do the blue and red lines stand for? And which diet is superior compared to the rest?

3 REPLIES 3
PaigeMiller
Diamond | Level 26

@JUMMY wrote:

I have a data of this nature. 

data have;
  	input diet : $1. @;
			do i=1 to 7;
			input  cholesterol @;
		output;
	end;
drop i;
datalines;
A: 29 32 26 15 34 15 23
B: 11 30 34 13 27 24 21
C: 22 12 20 7 3 27 4
D: 16 21 13 6 0 9 25
E: 6 2 10 -3 8 1 -4
;
run;

I did run the Tukey Test using the code below:

proc glm data=have;
  class diet;
  model cholesterol=diet;
  means diet / lines tukey;
run;

And I got this output:

 

Tukey.png

 

Can someone explain what this output mean? What do the blue and red lines stand for?


The blue line crosses C D E, so these are not statistically different. The red line crosses A B C D, so these are not statisitically different. (Or to phrase it opposite, E is different than A and B with 95% confidence, but no other difference is statistically significant.)

 

And which diet is superior compared to the rest?

 

I don't know. What in the data tells you that one diet is better than another diet?

--
Paige Miller
JUMMY
Obsidian | Level 7

@PaigeMiller , what of a case where there are three lines involved? What does the blue, red and green lines means in the diagram below?

 

Duncan.png

PaigeMiller
Diamond | Level 26

These lines are interpreted the same way as two lines.

--
Paige Miller

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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