StatsRankCorrelationTest
StatsRankCorrelationTest [/ALPH=alpha /P=method /Q /T=k /Z] waveA, waveB
The StatsRankCorrelationTest operation performs Spearman's rank correlation test on waveA and waveB, 1D waves containing the same number of points. Output is to the W_StatsRankCorrelationTest wave in the current data folder.
Flags
| /ALPH=val | Sets the significance level (default val =0.05). | ||||||
| /P=method | Controls the computation of the P-value. | ||||||
| The /P flag was added in Igor Pro 9.00. | |||||||
| |||||||
| /Q | No results printed in the history area. | ||||||
| /T=k | Displays results in a table. k specifies the table behavior when it is closed. | ||||||
| |||||||
| /Z | Ignores errors. | ||||||
Details
StatsRankCorrelationTest ranks waveA and waveB and then computes the sum of the squared differences of ranks for all rows. Ties are assigned an average rank and the corrected Spearman rank correlation coefficient is computed with ties. It reports the sum of the squared ranks (sumDi2), the sums of the ties coefficients (sumTx and sumTy respectively), the Spearman rank correlation coefficient (in the range [-1,1]), and the critical value. H0 corresponds to zero correlation against the alternative of nonzero correlation. The critical value is usually lower than the one in published tables. When the first derivative of the CDF is discontinuous, tables tend to use a more conservative value by choosing the next transition of the CDF as the critical value. StatsRankCorrelationTest is not as powerful as StatsLinearCorrelationTest.
See Also
Statistical Analysis, StatsLinearCorrelationTest, StatsCircularCorrelationTest, StatsKendallTauTest, StatsSpearmanRhoCDF, StatsInvSpearmanCDF