Open kahaaga opened 5 years ago
This could be done by implementing a PreferredDirectionTest{CT} where {CT <: CausalityTest}
. Analogously to PredictiveAsymmetryTest
, this takes any causality test and automatically performs the causality tests both from source
to target
and target
to source
. It then takes the difference between the statistics in both directions, and returns a single statistic saying something about the direction.
There might be need for normalisation for some of the causality statistics.
The comment above refers to old, deleted code and can be disregarded.
On a new note: this feature should still be implemented, since it is so widely used. However, it is only applicable to directional measures. We can use the type parameter system to indicate which measures are directional and which are not, so we can make a unified API for this.
EDIT: a preferred direction measure is also used for the rank-statistic measures such as the S-measure & friends (#35 )
Implement a measure for the preferred all bivariate directional association measures.
This was used for transfer entropy in Gourévitch, B., & Eggermont, J. J. (2007). Evaluating information transfer between auditory cortical neurons. Journal of Neurophysiology, 97(3), 2533–2543.