Example E2, SAS Program, SAS Output - Notes | STAT 479, Exams of Statistics

Material Type: Exam; Class: CMPTR PROCESSG DATA; Subject: STATISTICS; University: Iowa State University; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 09/02/2009

koofers-user-hmw
koofers-user-hmw 🇺🇸

10 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Example E2
SAS Program
data peas;
input sugar @;
do i=1 to 10;
input length @;
output;
end;
drop i;
datalines;
1 75 67 70 75 65 71 67 67 76 68
2 57 58 60 59 62 60 60 57 59 61
3 58 61 56 58 57 56 61 60 57 58
4 58 59 58 61 57 56 58 57 57 59
5 62 66 65 63 64 62 65 65 62 67
;
run ;
proc print;
title ' Effect of Sugars on the Growth of Peas';
run;
proc glm;
class sugar ;
model length = sugar;
means sugar/lsd alpha = .05;
means sugar/tukey alpha = .05;
contrast 'CONTROL VS. SUGARS' sugar 4 -1 -1 -1 -1;
contrast 'SUGARS VS. MIXED ' sugar 0 1 1 -3 1;
contrast 'GLUCOSE=FRUCTOSE' sugar 0 1 -1 0 0;
contrast 'FRUCTOSE = SUCROSE' sugar 0 1 0 0 -1;
estimate 'CONTROL VS. SUGARS' sugar 4 -1 -1 -1 -1;
estimate 'SUGARS VS. MIXED ' sugar 0 1 1 -3 1;
estimate 'GLUCOSE=FRUCTOSE' sugar 0 1 -1 0 0;
estimate 'FRUCTOSE = SUCROSE' sugar 0 1 0 0 -1;
run;
pf3
pf4
pf5

Partial preview of the text

Download Example E2, SAS Program, SAS Output - Notes | STAT 479 and more Exams Statistics in PDF only on Docsity!

Example E2 SAS Program data^ peas;input^ sugar @;do i=^1 to

^10 ; input length @;output; end;drop^ i;datalines;1 75 67 70 75 65 71 67 67 76 682 57 58 60 59 62 60 60 57 59 613 58 61 56 58 57 56 61 60 57 584 58 59 58 61 57 56 58 57 57 595 62 66 65 63 64 62 65 65 62 67; run^ ; proc^ print

; title ' Effect of Sugars on the Growth of Peas'; run ; proc^ glm ; class^ sugar ;model^ length =

sugar; means^ sugar/lsd

alpha^ =^

means^ sugar/tukey

alpha^ =^

contrast^

'CONTROL VS. SUGARS'

sugar^^4

-^1 -^1 -^1

-^1 ;

contrast^

'SUGARS VS. MIXED

'^ sugar

^0 1

-^3 1 ;

contrast^

'GLUCOSE=FRUCTOSE'

sugar^

0 1 -^1

contrast^

'FRUCTOSE = SUCROSE'

sugar^^0

estimate^

'CONTROL VS. SUGARS'

sugar^^4

-^1 -^1 -^1

-^1 ;

estimate^

'SUGARS VS. MIXED

'^ sugar

^0 1

-^3 1 ;

estimate^

'GLUCOSE=FRUCTOSE'

sugar^

0 1 -^1

estimate^

'FRUCTOSE = SUCROSE'

sugar^^0

run ;

SAS Output

Effect^ of

Sugars^ on

the^ Growth

of^ Peas^ Obs^ sugar

length 1 1

.^.^

R-Square^

Coeff Var

Root

MSE^ length

Mean

0.^

3.^

2.^

Source^

DF^ Type

I^ SS^

Mean^ Square

F^ Value

Pr^ >^ F

sugar^

Source^

DF^ Type III

SS^ Mean

Square^

F^ Value^

Pr^ >^ F

sugar^

Effect^ of

Sugars^ on

the^ Growth

of^ Peas^

The^ GLM^ Proceduret Tests^ (LSD)

for^ length

NOTE:^ This

test^ controls

the^ Type

I^ comparisonwise error rate,

not the

experimentwise

error^ rate. Alpha^

Error^ Degrees

of^ Freedom

Error^ Mean

Square^

Critical^

Value^ of^

t^

Least^ Significant

Difference

Means^ with

the^ same

letter^ are

not^ significantly

different.

t^ Grouping

Mean^

N^ sugar A^

70.^

B^

64.^

C^

59.^

C C^

58.^

C C^

58.^

Effect^ of

Sugars^ on

the^ Growth

of^ Peas^

The^ GLM^ Procedure

Dependent Variable: lengthContrast

DF^ Contrast

SS^ Mean

Square^

F^ Value^

Pr^ >^ F

CONTROL VS. SUGARS

SUGARS^ VS.

MIXED^

GLUCOSE=FRUCTOSE

FRUCTOSE^

=^ SUCROSE

Standard

Parameter

Estimate^

Error^

t^ Value^

Pr^ >^ |t|

CONTROL^ VS.

SUGARS^

SUGARS^ VS.

MIXED^

GLUCOSE=FRUCTOSE

FRUCTOSE^

=^ SUCROSE