SAS Work Shop - GLM |
Statistical Programs |
Handout # 1 |
College of Agriculture |
|
Data used in Examples
The data used for examples in this workshop has the following factors:
- Varieties
- Levels 2
- Variable name VAR
- Qualitative
- Nitrogen Fertilizer
- Levels 3
- Variable name FERT
- Qualitative
- Blocks or Replications
- Levels 4
- Variable name BLOCKS
- Qualitative
- pH (Covariate)
- Levels numerous
- Variable name pH
- Quantitative
- Yield
- Levels numerous
- Variable name YIELD
- Quantitative
The data is read in as follows:
DATA YIELD;
INPUT VAR $ FERT BLOCK pH YIELD;
CARDS;
VAR1 1 1 7.07 0.42
VAR1 1 2 7.06 0.22
VAR1 1 3 7.08 0.65
VAR1 1 4 7.09 0.82
VAR1 2 1 7.13 1.78
VAR1 2 2 7.12 1.56
VAR1 2 3 7.15 2.18
VAR1 2 4 7.14 1.96
VAR1 3 1 7.18 2.68
VAR1 3 2 7.18 2.60
VAR1 3 3 7.14 1.99
VAR1 3 4 7.15 2.08
VAR2 1 1 7.06 0.35
VAR2 1 2 7.05 0.13
VAR2 1 3 7.06 0.20
VAR2 1 4 7.06 0.24
VAR2 2 1 7.13 1.76
VAR2 2 2 7.11 1.37
VAR2 2 3 7.14 1.89
VAR2 2 4 7.15 2.09
VAR2 3 1 7.15 2.06
VAR2 3 2 7.17 2.43
VAR2 3 3 7.14 1.92
VAR2 3 4 7.16 2.39
;
Notice that the variety is alphabetic and is read in as character data.
Return to TOP; Return to Outline.