Coherence critical values
Posted: Wed Dec 03, 2014 10:00 am
Dear all,
I tried to figure out the critical value of the coherence as calculated in CROSSPEC.SRC.
I found an old post who suggested: C_crit = sqrt(1-alpha^(1/(n-1))).
I have monthly data from 1960-2014 and the %EBW delivers 0.08590.
I added some lines to CROSSPEC.SRC as follows (after POLAR and befor the graphing instructions):
....polar 8 / 9 10
compute n = %ebw
*compute ninv = 1/(n-1)
compute c_crit = sqrt(1-(0.95^(1/(n-1))))
display c_crit
display %ebw
if graph....
However, I only get NA so far. Calculation by hand gives about 0.67 which makes sense. I also tried with %ebw instead of computing an extra scalar n.
I tried to figure out the critical value of the coherence as calculated in CROSSPEC.SRC.
I found an old post who suggested: C_crit = sqrt(1-alpha^(1/(n-1))).
I have monthly data from 1960-2014 and the %EBW delivers 0.08590.
I added some lines to CROSSPEC.SRC as follows (after POLAR and befor the graphing instructions):
....polar 8 / 9 10
compute n = %ebw
*compute ninv = 1/(n-1)
compute c_crit = sqrt(1-(0.95^(1/(n-1))))
display c_crit
display %ebw
if graph....
However, I only get NA so far. Calculation by hand gives about 0.67 which makes sense. I also tried with %ebw instead of computing an extra scalar n.