Skip to main content

StatsANOVA1Test

StatsANOVA1Test [/ALPH=significance /BF/Q/Z/T=k /W/WSTR=wList] [wave1,wave2,... wave100 ]

The StatsANOVA1Test operation performs a one-way ANOVA test (fixed-effect model). The standard ANOVA test results are stored in the M_ANOVA1 wave in the current data folder.

Flags

/ALPH=valSets the significance level (default 0.05).
/BFPerforms the Brown and Forsythe test computing F'' and degrees of freedom. The W_ANOVA1BnF wave in the current data folder contains the output.
/DSTA=aWaveSpecify the output wave for the standard ANOVA test results. If you do not specify this flag, the operation stores the data in the wave M_ANOVA1 in the current data folder.
This flag was added in Igor Pro 10.00.
/DSTB=bWaveSpecify the output wave for the Brown and Forsythe test results. If you do not specify this flag, the operation stores the data in the wave W_ANOVA1BnF in the current data folder.
This flag was added in Igor Pro 10.00.
/DSTW=wWaveSpecify the output wave for the Welch test. If you do not specify this flag, the operation stores the data in the wave W_ANOVA1Welch in the current data folder.
This flag was added in Igor Pro 10.00.
/FREECreates all destination waves as free waves. This flag does not affect any of the output waves that are created by default without a user-specified destination.
/FREE is allowed only in functions, and only if the destination waves are simple names or wave reference structure fields.
See Free Waves for more discussion.
The /FREE flag was added in Igor Pro 10.00.
/QNo results printed in the history area.
/T=kDisplays results in a table; additional tables are created with /BF and /W.
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.
/WPerforms the Welch test F' and computes degrees of freedom. The W_ANOVA1Welch wave in the current data folder contains the output.
/WSTR=waveListString
Specifies a string containing a semicolon-separated list of waves that contain sample data. Use waveListString instead of listing each wave after the flags.
/ZIgnores errors. V_flag will be set to -1 for any error and to zero otherwise.

Details

Inputs to StatsANOVA1Test are two or more 1D numerical waves containing (one wave for each group of samples). Use NaN for missing entries or use waves with different numbers of points. The standard ANOVA results are in the M_ANOVA1 wave with corresponding row and column labels. Use /T to display the results in a table. In each case you will get the two degrees of freedom values, the F value, the critical value Fc for the choice of alpha and the degrees of freedom, and the P-value for the result. V_flag will be set to -1 for any error and to zero otherwise.

In some cases the ANOVA test may not be appropriate. For example, if groups do not exhibit sufficient homogeneity of variances. Although this may not be fatal for the ANOVA test, you may get more insight by performing the variances test in StatsVariancesTest.

If there are only two groups this test should be equivalent to StatsTTest.

You can evaluate the power of an ANOVA test for a given set of degrees of freedom and noncentrality parameter using:

power=1-StatsNCFCDF(StatsInvFCDF((1-alpha),n1,n2),n1,n2,delta)

Here n1 is the Groups' degrees of freedom, n2 is the Error degrees of freedom and delta is the noncentrality parameter. For more information see ANOVA Power Calculations Panel and the associated example experiment.

References

Zar, J.H., Biostatistical Analysis, 4th ed., 929 pp., Prentice Hall, Englewood Cliffs, New Jersey, 1999.

See Also

Statistical Analysis, StatsVariancesTest, StatsTTest, StatsNCFCDF, StatsInvFCDF

Demos

Open ANOVA1 Demo.pxp