Skip to main content

StatsTukeyTest

StatsTukeyTest [/ALPH=val /NK/Q/Z/SWN/T=k /WSTR=wList ] [wave1, wave2,... wave100 ]

The StatsTukeyTest operation performs multiple comparison Tukey (HSD) test and optionally the Newman-Keuls test. Output is to the M_TukeyTestResults wave in the current data folder. StatsTukeyTest usually follows StatsANOVA1Test.

Flags

/ALPH=valSets the significance level (default val =0.05).
/DEST=dstWaveSpecify the destination wave for the Tukey test results. If you do not use this flag, the results are stored in the wave M_TukeyTestResults in the current data folder.
This flag was added in Igor Pro 10.00.
/DSTL=labWaveSpecify the destination text wave for the descriptors of the test results (see /SWN). If you do not use this flag, the operation saves the text in the wave T_TukeyDescriptors in the current data folder.
This flag was added in Igor Pro 10.00.
/FREECreates the user-specified destination waves as free waves.
/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.
/NKComputes the Newman-Keuls test.
/QNo results printed in the history area.
/SWNCreates a text wave, T_TukeyDescriptors, containing wave names corresponding to each row of the comparison table (Save Wave Names). Use /T to append the text wave to the last column.
/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.
/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 StatsTukeyTest are two or more 1D numeric waves (one wave for each group of samples) containing any numbers of points but with at least two or more valid entries.

The contents of the M_TukeyTestResults columns are: the first contains the difference between the group means

XˉiXˉj\displaystyle \bar{X}_{i}-\bar{X}_{j}

, the second contains SE (supports unequal number of points), the third contains the q statistic for the pair, and the fourth contains the critical q value, the fifth contains the conclusion with 0 to reject H0i == µj) or 1 to accept H0, with /NK, the sixth contains the p values

p=rank[Xˉi]rank[Xˉj]+1,\displaystyle p=\operatorname{rank}\left[\bar{X}_{i}\right]-\operatorname{rank}\left[\bar{X}_{j}\right]+1,

the seventh contains the critical values, and the eighth contains the Newman-Keuls conclusion (with 0 to reject and 1 to accept H0). The order of the rows is such that all possible comparisons are computed sequentially starting with the comparison of the group having the largest mean with the group having the smallest mean.

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

See Also

Statistical Analysis, StatsANOVA1Test, StatsScheffeTest, StatsDunnettTest

Demos

Open Tukey-Test Demo.pxp