In the test_cosinor() function, the difference between acrophases should account for periodicity. For example, acrophases of -pi and pi are the same, but the raw absolute difference is 2*pi. This means that when comparing two acrophases in the previous version of test_cosinor(), the true differences may have been overestimated.
To address this, test_cosinor() now determines the minimum absolute difference of two acrophase estimates which is used to generate the p-values and confidence intervals for the difference between the the two estimates.
In the test_cosinor() function, the difference between acrophases should account for periodicity. For example, acrophases of -pi and pi are the same, but the raw absolute difference is 2*pi. This means that when comparing two acrophases in the previous version of test_cosinor(), the true differences may have been overestimated.
To address this, test_cosinor() now determines the minimum absolute difference of two acrophase estimates which is used to generate the p-values and confidence intervals for the difference between the the two estimates.