StatsCircularMeans
StatsCircularMeans [/ALPH=significance /CI/Q/Z/T=k ] srcWave
The StatsCircularMeans operation calculates the mean of a number of circular means, returning the mean angle (grand mean), the length of the mean vector, and optionally confidence interval around the mean angle. Output is to the history area and to the W_CircularMeans wave in the current data folder.
Flags
| /ALPH=val | Sets the significance level (default 0.05). | ||||||
| /CI | Calculates the confidence interval (labeled CI_t1 and CI_t2) around the mean angle. | ||||||
| /DEST=sWave | Specify the destination wave for the circular means results. If you do not use this flag, the operation saves this output in the wave W_CircularMeans in the current data folder. | ||||||
| This flag was added in Igor Pro 10.00. | |||||||
| /FREE | Creates the user-specified destination wave as a free wave. | ||||||
| /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. | |||||||
| /NSOA | Performs nonparametric second order analysis according to Moore's version of Rayleigh's test where H0 corresponds to uniform distribution around the circle. Moore's test ranks entries by the lengths of the mean radii (second column of the input) from smallest (rank 1) to largest (rank n) and then computes the statistic: | ||||||
| where ai are the mean angle entries (from column 1) corresponding to vector length rank (i+1). The critical value is obtained from Moore's distribution StatsInvMooreCDF. | |||||||
| /PSOA | Perform parametric second order analysis where H0 corresponds to no mean population direction. It assumes that the second order quantities are from a bivariate normal distribution. If this is not the case, use /NSOA above. The test statistic is: | ||||||
| where | |||||||
| Here n is the number of means in srcWave and the critical value is computed from the F distribution, equivalent to executing: | |||||||
Print StatsInvFCDF(1-alpha,2,n-2) | |||||||
| /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
The srcWave input to StatsCircularMeans must be a single or double precision two column wave containing in each row a mean angle (radians) and the length of a mean radius (the first column contains mean angles and the second column contains mean vector lengths). srcWave must not contain any NaNs or INFs. The confidence interval calculation follows the procedure outlined by Batschelet.
V_flag will be set to -1 for any error and to zero otherwise.
References
Zar, J.H., Biostatistical Analysis, 4th ed., 929 pp., Prentice Hall, Englewood Cliffs, New Jersey, 1999.
See Also
Statistical Analysis, StatsCircularMoments, StatsInvMooreCDF, StatsInvFCDF