Docsity

Example F10 - SAS Program - Computer Processing Data | STAT 479, Study notes of Statistics

Partial preview of the text

Download Example F10 - SAS Program - Computer Processing Data | STAT 479 and more Study notes Statistics in PDF only on Docsity!

Example F10SAS Program data^ soybean;input^ trt $ @;do^ rep=^1 to^^5 ; input^ yield @;output;end;datalines;check 8 10 12 13 11arasan 2 6 7 11 5spergon 4 10 9 8 10samesan 3 5 9 10 6fermate 9 7 5 5 3; run ; proc^ glm^ order=data;class^ trt rep;model^ yield = trt rep;contrast^ 'Check vs Chemicals'

trt^^4 -^1 -^1 -^1 -^1

random^ rep/Q;lsmeans^ trt/pdiff^ cl

adjust=tukey;

run ;

SAS Output

The^ SAS^ System^ The^ GLM ProcedureClass^ Level Information Class^ Levels^

Values trt^5

check arasan spergon^ samesan

fermate rep^5

1 2 3 4^5 Number of Observations Read^

Number^ of Observations Used

The^ SAS^ System^ The^ GLM Procedure Quadratic Forms^ of^ Fixed

Effects^ in^ the Expected

Mean Squares Source: Type^ III Mean^

Square^ for^ trt trt check trt^ arasan^

trt^ spergon

trt check^

4.00000000^ -1.

trt arasan^

-1.^

4.00000000^ -1.

trt spergon^

-1.00000000^ -1.

trt samesan^

-1.00000000^ -1.

trt fermate^

-1.00000000^ -1.

Source: Type^ III^ Mean Square for

trt trt samesan trt fermate trt check^

-1.00000000^ -1.

trt arasan^

-1.00000000^ -1.

trt spergon^

-1.00000000^ -1.

trt samesan^

4.00000000^ -1.

trt fermate^

-1.^

Source:^ Contrast^ Mean Square for

Check vs Chemicalstrt check trt^ arasan^ trt

spergon

trt check^

4.00000000^ -1.

trt arasan^

-1.^

0.25000000^ 0.

trt spergon^

-1.^

0.25000000^ 0.

trt samesan^

-1.^

0.25000000^ 0.

trt fermate^

-1.^

0.25000000^ 0.

Source:^ Contrast^ Mean Square for

Check vs Chemicalstrt samesan trt fermate trt check^

-1.00000000^ -1.

trt arasan^

0.25000000^ 0.

trt spergon^

0.25000000^ 0.

trt samesan^

0.25000000^ 0.

trt fermate^

0.25000000^ 0.25000000 The SAS^ System^ The^ GLM Procedure Source^

Type^ III Expected^ Mean Square trt^

Var(Error)^ + Q(trt) rep^

Var(Error)^ + 5^ Var(rep) Contrast^

Contrast Expected^ Mean Square Check vs^ Chemicals^

Var(Error)^ + Q(trt)

Least Squares^ Means for

Effect^ trt Difference Simultaneous^ 95%Between Confidence Limits for i^ j^ Means

  • 1 2 4. LSMean(i)-LSMean(j)
  • 0.093171 9.
    • 1 3 2.
    • -1.906829 7.
      • 1 4 4.
      • -0.306829 8.
        • 1 5 5.
        • 0.493171 9.
          • 2 3 -2.
          • -6.506829 2.
            • 2 4 -0.
            • -4.906829 4.
              • 2 5 0.
              • -4.106829 4.
                • 3 4 1.
                • -2.906829 6.
                  • 3 5 2.
                  • -2.106829 6.
                    • 4 5 0. - -3.706829 5.