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

     N_ANOVA.PRG 2.5

     (C) N_Software - Noud van Kruysbergen 24/02/93

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

N_ANOVA allows you to do an AN(alysis) O(f) VA(riance) on your 
data. Usually you have two or more conditions or groups between 
which, you hope (or not), is a difference. Statistical analysis 
of the variance of the results will show the significance of this 
difference. If you know what I am talking about then maybe you 
can use this program. If you don't know what I am talking about 
then just delete N_ANOVA.

N_ANOVA can do 1-way, 2-way or 3-way ANOVA. The input file needs 
a special format:

1-way analysis

line 1: number of levels for variable R and a short (max 80 
     characters) description.
line 2: number of subjects/measures (n) for each cell.
next n values: results for first level of variable R.
next n values: results for second level of variable R, and so on.

2-way analysis

line 1: number of levels for variable R and a short (max 80 
     characters) description.
line 2: number of levels for variable C and a short (max 80 
     characters) description.
line 3: number of subjects/measures (n) for each cell.
next n values: results for first level of variable R (R1) and 
     first level of variable C (C1).
next n values: results for first level of variable R (R1) and
     first level of variable C (C2), and so on.
next n values: results for first level of variable R (R2) and
     first level of variable C (C1).
next n values: results for first level of variable R (R2) and
     first level of variable C (C2), and so on.

3-way analysis

line 1: number of levels for variable R and a short (max 80 
     characters) description.
line 2: number of levels for variable C and a short (max 80 
     characters) description.
line 3: number of levels for variable L and a short (max 80 
     characters) description.
line 4: number of subjects/measures (n) for each cell.
next n values: results for R1-C1-L1.
next n values: results for R1-C2-L1, and so on.
next n values: results for R2-C1-L1.
next n values: results for R2-C2-L1, and so on.
next n values: results for R1-C1-L2.
next n values: results for R1-C2-L2, and so on.
next n values: results for R2-C1-L2.
next n values: results for R2-C2-L2, and so on, and so on.

Click on the '1-way' button or press <Alternate>+<A> to do a 1-
way analysis. The data file is asked for (with a DA1) extension, 
and the results will be shown. These results can be saved as. 
Click on 'Save' and the output file is asked for (preset to 
INPUT.VA1). Besides the F-values the SS and MS and variable means 
are given in the output file.

The same procedure holds for doing a 2- or 3-way analysis. If you 
want to convert a 3-way analysis data file (DA3) to a 2-way 
analysis data file (DA2) you can select '3->2'. The DA3 file is 
asked for, and the DA2 file is then automatically created, after 
an alert has been given that asks yo which dimension of the data 
has to be neglected. The DA2 file can then again be converted to 
a DA1 file if you like.

N_ANOVA should work on any Atari compatible machine, and the 
dialogs of N_FLYLIB are used. The dialogs do not appear in a 
window (yet). We do not take any responsibility for the (mis)use 
of this program. N_ANOVA is developed with Pure C 1.0.

N_ANOVA is strictly Public Domain, and may not be sold, only 
copied! Click on the 'N_ANOVA 2.5' string to get more informa-
tion.

Noud van Kruysbergen
Nijmegen Institute of Cognition and Information
PO Box 9104
6500 HE Nijmegen
The Netherlands
kruysbergen@nici.kun.nl

Example of 3-way ANOVA data file:
-----------------------------------------------------------------
2 environment: free/restricted
3 strain: bright/mixed/dull
2 early blinded/late blinded
6 subjects

27 45 76 22 18 33
31 52 86 37 45 66
55 76 104 62 85 126
55 81 36 40 50 70
77 98 42 76 68 104
132 96 89 104 70 142
61 76 46 39 60 59
61 82 103 71 92 105
140 99 68 122 92 101
88 95 51 92 103 73
100 120 89 120 131 76
142 96 80 150 105 125

N_ANOVA output of this datafile:
----------------------------------------------------------------------------

D:\PURE.C\EXAMPLE.VA3 03/05/94 13:12:17
D:\PURE.C\EXAMPLE.DA3 03/05/94 11:14:13

 R: 2 environment: free/restricted
 C: 3 strain: bright/mixed/dull
 L: 2 early blinded/late blinded
 n: 6 subjects

 Layer  1
 Column:         1         2         3
 Row  1:       36.83     52.83     84.67
 Row  2:       55.33     77.50    105.50

 Layer  2
 Column:         1         2         3
 Row  1:       56.83     85.67    103.67
 Row  2:       83.67    106.00    116.33

 Mean for    Row  1:     70.08
 Mean for    Row  2:     90.72

 Mean for Column  1:     58.17
 Mean for Column  2:     80.50
 Mean for Column  3:    102.54

 Mean for  Layer  1:     68.78
 Mean for  Layer  2:     92.03

                   SS             df             MS             F

    Rows:       7667.3472          1          7667.3472       15.9906
 Columns:      23630.0278          2         11815.0139       24.6407
  Layers:       9730.1250          1          9730.1250       20.2926
     R*C:        136.1944          2            68.0972        0.1420
     R*L:          8.6806          1             8.6806        0.0181
     C*L:        751.7500          2           375.8750        0.7839
   R*C*L:        223.6944          2           111.8472        0.2333
  Within:      28769.5000         60           479.4917        1.0000

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

