Parametric Hotelling paired sample test for equal angular means. Can be
used as a paired-sample test for circular data. The test has 2 by N-2
degrees of freedom where N is the number of pairs in the phase
If the individual phase values in alpha are mean values of
distributions, this concearns a second-level analysis. In that case,
the associated average vector lengths of these distributions are taken
H0: the two populations have equal mean phase angles
HA: the two populations have unequal mean phase angles
[pval, F] = circ_htest(alpha1, alpha2)
[pval, F] = circ_htest(alpha1, alpha2, r1 ,r2)
alpha1: angles in radians or degrees
alpha2: angles in radians or degrees
r1: (optional) resultant vector lengths of alpha1, in case the values
in alpha1 consist of mean values of distributions themselves (i.e.
r2: (optional) resultant vector lengths of alpha2, in case the values
in alpha2 consist of mean values of distributions themselves (i.e.
Inputs can be either a row or column vector. Inputs alpha1 and alpha2
need to have the same length. Optional r1 and r2 need to be the same
length as alpha, and each value in r should have the same index as
their alpha counterpart.
pval p-value of the Hotelling paired-sample test. Discard H0 if
pval is small.
F the test statistic of the Hottelling test
Biostatistical Analysis, J. H. Zar (1999)
Rudy van den Brink (2020). circ_htest.m (https://www.mathworks.com/matlabcentral/fileexchange/46349-circ_htest-m), MATLAB Central File Exchange. Retrieved .