Skip to main content

StatsANOVA2Test

StatsANOVA2Test [/ALPH=significance /FAKE=num /MODL=modelNumber /T=k /Q/Z] srcWave

The StatsANOVA2Test operation performs a two-factor analysis of variance (ANOVA) on srcWave. Output is to the M_ANOVA2Results wave in the current data folder or optionally to a table.

Flags

/ALPH=valSets the significance level (default 0.05).
/DEST=destWaveSpecify the output wave for the test. If you do not specify this flag, the operation stores the data in the wave M_ANOVA2Results in the current data folder.
This flag was added in Igor Pro 10.00.
/FAKE=numSpecifies the number of points in srcWave obtained by "estimation". num is subtracted from the Total and Error degrees of freedom.
/FREECreates the destination wave as a free wave.
/FREE is allowed only in functions, and only if the destinationves are simple names or wave reference structure fields.
See Free Waves for more discussion.
The /FREE flag was added in Igor Pro 10.00.
/MODL=modelSets the model number.
model =1:Factor A and factor B are fixed (default).
model =2:Both factors are random.
model =3:Factor A is fixed and factor B is random.
/QNo results printed in the history area.
/T=kDisplays results in a table. k specifies the table behavior when it is closed.
k =0:Normal with dialog (default).
k =1:Kills with no dialog.
k =2:Disables killing.
The table is associated with the test, not the data. If you repeat the test, it will update any existing table with the new results.
/ZIgnores errors. V_flag will be set to -1 for any error and to zero otherwise.

Details

Input to StatsANOVA2Test is the single or double precision 3D srcWave in which the factor A levels are columns, the factor B levels are rows, and the replicates are layers. If srcWave contains dimension labels they will be used to designate the factors in the output.

Ideally, the number of replicates must be equal for each factor and each level. StatsANOVA2Test supports both equal replication and proportional replication. Proportional replication allows for different number of data in each cell with missing data represented as NaN and the number of points in each cell is given by

Nij=(sum of data in row i)*(sum of data in column j)/number of samples.

If you have no replicates (a single datum per cell) use StatsANOVA2NRTest instead. If the number of replicates in your data does not satisfy these conditions you may be able to "estimate" additional replicates using various methods. In that case use the /FAKE flag so that the operation can account for the estimated data by reducing the total and error degrees of freedom. /FAKE only accounts for the number of estimates being used. You must provide an appropriate number of estimated values.

The contents of the M_ANOVA2Results output wave columns are: the first contains the sum of the squares (SS) values, the second the degrees of freedom (DF), the third contains the mean square (MS) values, the fourth contains the computed F value for this test, the fifth contains the critical Fc value for the specified alpha and degrees of freedom, and the last contains the conclusion with 0 to reject H0 or 1 to accept it. In each case H0 corresponds to the mean level, which is the same for all populations.

V_flag will be set to -1 for any error and to zero otherwise.

See Also

Statistical Analysis, StatsANOVA1Test, StatsANOVA2NRTest

Demos

Open ANOVA2 Demo.pxp