Date: Thu, 6 Oct 2011 15:35:14 -0400 Nat Wooding "SAS(r) Discussion" Nat Wooding Re: Compare the Strength for Three Kinds of Noodle text/plain; charset="US-ASCII"

I may be severely chastised by the statisticians on the list but one solution would be a multiple range test. In these, the mean and standard deviation are calculated for each group. The means are ranked and compared. Means that are not significantly different are assigned to a group and the set of means is then displayed in one or more groups. In your case, noodles a and b are in a group which is different from noodle c. This is sort of the first year stats solution. In later years, they tell you what is wrong with this approach. Here is the code.

Nat Wooding

Data noodles; infile cards missover; input Noodle \$1. Strength; if strength; cards; A 5.576

A 5.642

A 5.691

A 5.84

A 6.516

A 5.807

A 6.104

A 5.774

A 6.417

A 5.922

A 5.609

A 5.625

A 5.658

A 6.648

A 5.757

A 5.675

A 5.691

A 5.708

A 5.493

A 6.038

A 5.757

A 6.219

A 6.896

A 6.087

A 6.318

A 5.147

A 5.163

A 5.493

A 5.873

A 6.071

B 5.427

B 5.774

B 6.813

B 5.724

B 5.147

B 5.658

B 5.427

B 5.543

B 6.318

B 5.972

B 5.13

B 5.196

B 5.708

B 5.774

B 5.972

B 5.312

B 4.833

B 5.592

B 5.361

B 5.856

B 5.889

B 5.741

B 6.285

B 5.873

B 6.219

B 5.064

B 5.642

B 6.83

B 5.988

B 5.51

C 5.345

C 5.939

C 6.302

C 6.153

C 5.526

C 5.51

C 5.477

C 5.246

C 5.988

C 5.444

C 5.559

C 5.741

C 5.114

C 5.262

C 5.18

C 4.585

C 5.477

C 4.882

C 5.279

C 5.774

C 5.427

C 5.048

C 5.295

C 4.949

C 5.18

C 5.031

C 5.658

C 5.328

C 5.031

C 5.147

; proc anova;class noodle; model strength = noodle; means noodle / tukey; run;

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Han Chen Sent: Thursday, October 06, 2011 3:05 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Compare the Strength for Three Kinds of Noodle

Dear Lister

There are three kind of noodles which have different strength as below. Could you show me how to use SAS to test the whether the three kinds of noodle is different in strength significantly ?

Any suggestion would be greatly appreciated

Thanks

------------------------------------------------------

Noodle Strength

A 5.576

A 5.642

A 5.691

A 5.84

A 6.516

A 5.807

A 6.104

A 5.774

A 6.417

A 5.922

A 5.609

A 5.625

A 5.658

A 6.648

A 5.757

A 5.675

A 5.691

A 5.708

A 5.493

A 6.038

A 5.757

A 6.219

A 6.896

A 6.087

A 6.318

A 5.147

A 5.163

A 5.493

A 5.873

A 6.071

B 5.427

B 5.774

B 6.813

B 5.724

B 5.147

B 5.658

B 5.427

B 5.543

B 6.318

B 5.972

B 5.13

B 5.196

B 5.708

B 5.774

B 5.972

B 5.312

B 4.833

B 5.592

B 5.361

B 5.856

B 5.889

B 5.741

B 6.285

B 5.873

B 6.219

B 5.064

B 5.642

B 6.83

B 5.988

B 5.51

C 5.345

C 5.939

C 6.302

C 6.153

C 5.526

C 5.51

C 5.477

C 5.246

C 5.988

C 5.444

C 5.559

C 5.741

C 5.114

C 5.262

C 5.18

C 4.585

C 5.477

C 4.882

C 5.279

C 5.774

C 5.427

C 5.048

C 5.295

C 4.949

C 5.18

C 5.031

C 5.658

C 5.328

C 5.031

C 5.147

*Han Chen*

Back to: Top of message | Previous page | Main SAS-L page