> Thanks d_n, this is actually a hobby gone slightly
> out of control.
> The problem is whether CO2 varies with time and
> position in an aquarium regulated with a controller.
> I reported the data as indicated in the table. Some
> one else used the data to do the analysis and create
> the outputs.
> he problem is that the data is not normal because it
> has been skewed using a non linear transformer
> (exponentiation). When asked to redo the analysis
> using the untransformed data, the person refused so
> now I have to do it myself.
>
> As I said, I don’t know anything about SAS but the
> code reminds me of Basic.
Really.
>
> I cannot run the program now since I’m not at school
> but I have some questions.
>
> Did you run the program? Does it produce the same
> two outputs?
yes exactly the same as you posted.
[pre]
The SAS System 58
13:15 Friday, February 27, 2009
Obs position day co2
1 1 1 19
2 1 2 19
3 1 3 20
4 1 4 21
5 1 5 17
6 2 1 23
7 2 2 23
8 2 3 20
9 2 4 23
10 2 5 19
11 3 1 24
12 3 2 21
13 3 3 21
14 3 4 23
15 3 5 17
16 4 1 22
17 4 2 21
18 4 3 20
19 4 4 21
20 4 5 18
21 5 1 21
22 5 2 19
23 5 3 21
24 5 4 23
25 5 5 17
26 6 1 24
27 6 2 23
28 6 3 20
29 6 4 23
30 6 5 21
The SAS System 59
13:15 Friday, February 27, 2009
The GLM Procedure
Class Level Information
Class Levels Values
position 6 1 2 3 4 5 6
day 5 1 2 3 4 5
Number of Observations Read 30
Number of Observations Used 30
The SAS System 60
13:15 Friday, February 27, 2009
The GLM Procedure
Dependent Variable: co2
Sum of
Source DF Squares Mean Square
Model 9 97.6666667 10.8518519
Error 20 25.1333333 1.2566667
Corrected Total 29 122.8000000
Source F Value Pr > F
Model 8.64 <.0001
Error
Corrected Total
R-Square Coeff Var Root MSE co2 Mean
0.795331 5.389478 1.121011 20.80000
Source DF Type I SS Mean Square
position 5 29.20000000 5.84000000
day 4 68.46666667 17.11666667
Source F Value Pr > F
position 4.65 0.0056
day 13.62 <.0001
Source DF Type III SS Mean Square
position 5 29.20000000 5.84000000
day 4 68.46666667 17.11666667
Source F Value Pr > F
position 4.65 0.0056
day 13.62 <.0001
The SAS System 61
13:15 Friday, February 27, 2009
The GLM Procedure
t Tests (LSD) for co2
NOTE: This test controls the Type I comparisonwise error rate,
not the experimentwise error rate.
Alpha 0.05
Error Degrees of Freedom 20
Error Mean Square 1.256667
Critical Value of t 2.08596
Least Significant Difference 1.4789
Means with the same letter are not significantly different.
t Grouping Mean N position
A 22.2000 5 6
A
B A 21.6000 5 2
B A
B A 21.2000 5 3
B
B C 20.4000 5 4
B C
B C 20.2000 5 5
C
C 19.2000 5 1
The SAS System 62
13:15 Friday, February 27, 2009
The GLM Procedure
t Tests (LSD) for co2
NOTE: This test controls the Type I comparisonwise error rate,
not the experimentwise error rate.
Alpha 0.05
Error Degrees of Freedom 20
Error Mean Square 1.256667
Critical Value of t 2.08596
Least Significant Difference 1.3501
Means with the same letter are not significantly different.
t Grouping Mean N day
A 22.3333 6 4
A
A 22.1667 6 1
A
B A 21.0000 6 2
B
B 20.3333 6 3
C 18.1667 6 5
[/pre]
>
> If I change the size of the array, how do I modify
> the code to account for this?
Array? Number of Positions? Number of Days? Not sure what you are referring too. To me array is not the "correct" term here, but that can be resolved easily enough.
If you can post or describe the new data I'm sure "we", the discussion group, can help you.
>
> Thanks again for your help. I’ll head back to school
> tomorrow and try to run the program.
> RTP
... View more