Skip to main content
. 2024 Nov 22;14(12):1166. doi: 10.3390/brainsci14121166
Algorithm 1: Calculation of a causal matrix in the source space.
  • Input: A sample including EEG source signals S=[s1(t),s2(t),,sc(t)]r×c

Output: Gs
1: for i=1,,c, do
2:       for j=1,,c, do
3:             Calculate the residual ξ1 in autoregressive model by Equation (4).
4:             Calculate the residual η1 in vector regression model by Equation (5).
5:             Calculate the Granger causality between the ith and jth EEG source sign by Equation (6).
6:       end for
7: end for