This addin calculates a Spectral Granger Causality Test based on Breitung and Candelon (2006), the test decompose the causality relations in the spectrum of frequencies which can be attributed to short run and long run causality relations. You can find the addin help document and the example data attached.
Regards, Nicolas Ronderos Pulido
Spectral Granger Causality Test*
Moderators: EViews Gareth, EViews Moderator, EViews Esther
Spectral Granger Causality Test*
 Attachments

 Spectral_Causality.pdf
 (242.88 KiB) Downloaded 1103 times

 examples.wf1
 (427.65 KiB) Downloaded 831 times
Last edited by NicolasR on Fri Nov 03, 2017 10:35 am, edited 3 times in total.
Re: Spectral Granger Causality Test*
I am not familiar with the methodology, but as I understand it does not have any problem with nonstationarity unlike its traditional time series counterpart. If I am not mistaken, this is one of the main advantages of working in the frequency domain. In any case, thanks for the effort and sharing.
Re: Spectral Granger Causality Test*
Hi Trubador,
In the test you can apply the Toda and Yamamoto result. Nevertheless theoretically, to estimate a traditional spectrum conditions must be achived, some of them are related to a second order stationary process. By they way, great blog about your recent addin, seems to be a better strategy to comunicate an addin capabilities.
Best regards,
In the test you can apply the Toda and Yamamoto result. Nevertheless theoretically, to estimate a traditional spectrum conditions must be achived, some of them are related to a second order stationary process. By they way, great blog about your recent addin, seems to be a better strategy to comunicate an addin capabilities.
Best regards,
Re: Spectral Granger Causality Test*
thank you for this addin.
F statistic didnt reported in results? only omega and Pvalues will be saved?
F statistic didnt reported in results? only omega and Pvalues will be saved?
Re: Spectral Granger Causality Test*
Hi,
Yes, only the pvalues and the frequencys are saved. For what do you need the statistical?
Regards,
Yes, only the pvalues and the frequencys are saved. For what do you need the statistical?
Regards,
Re: Spectral Granger Causality Test*
Thanks for the addin. I occasionally get an error as attached. Any ideas why?
C.
C.
Re: Spectral Granger Causality Test*
Hi,
Because the test is based in two linear restrictions and you can not perfom a Wald (or an F) test if the number of restriccions in greater than the number of parameters, and since you are testing if the past of one variable (all its lags) at some frequency Grangercause another variable 2>p where p is the lag order of the VAR(p). Suggestion: try with AIC criteria.
Best regards,
Because the test is based in two linear restrictions and you can not perfom a Wald (or an F) test if the number of restriccions in greater than the number of parameters, and since you are testing if the past of one variable (all its lags) at some frequency Grangercause another variable 2>p where p is the lag order of the VAR(p). Suggestion: try with AIC criteria.
Best regards,

 Posts: 3
 Joined: Fri Nov 04, 2016 12:45 pm
Re: Spectral Granger Causality Test*
Hi,
I seem to be having a similar issue with the VAR Test error message. I'm not sure what I'm doing wrong since I'm just working with a very simple case between two data series, labeled series11 and series12 in the attached temp_data.WF1 file. Both series, as well as series21 and series22, are log differences of underlying data (and as logdifferences are stationary). Any help/guidance would be greatly appreciated!
Thanks!
I seem to be having a similar issue with the VAR Test error message. I'm not sure what I'm doing wrong since I'm just working with a very simple case between two data series, labeled series11 and series12 in the attached temp_data.WF1 file. Both series, as well as series21 and series22, are log differences of underlying data (and as logdifferences are stationary). Any help/guidance would be greatly appreciated!
Thanks!
 Attachments

 Screentshot 2 Error Message.png (38.43 KiB) Viewed 13262 times

 Screenshot 1 Set up.png (54.52 KiB) Viewed 13262 times

 temp_data.WF1
 (39.89 KiB) Downloaded 357 times
Re: Spectral Granger Causality Test*
Hi,
You are not doing anything wrong, it is because what I mention in my previous post. You have two options, increase the maximum number lags or select the AIC criteria, in the case that any of this work ir means that a VAR(p) with p>2 it is not suggested to be fitted to the data and the test can not be performed.
Regards,
You are not doing anything wrong, it is because what I mention in my previous post. You have two options, increase the maximum number lags or select the AIC criteria, in the case that any of this work ir means that a VAR(p) with p>2 it is not suggested to be fitted to the data and the test can not be performed.
Regards,

 Posts: 4
 Joined: Sun Jul 31, 2016 8:22 pm
Re: Spectral Granger Causality Test*
i do not know what is meaning about the figure? how to test it whether pass the 5% significant test? i hope i can get help. thank you.
Re: Spectral Granger Causality Test*
If the p value of the test is under the significance level the hypothesis that a series X does not cause a series Y in the frequency wj is rejected. Also a graph with the label var1_var2 means that the variable var1 is the dependent and var2 the independent, therefore the hypothesis is that var2 does not cause var1 at frequency wj.
Regards,
Regards,

 Posts: 3
 Joined: Fri Nov 04, 2016 12:45 pm
Re: Spectral Granger Causality Test*
Are you planning on adding the likelihood ratio (LR) statistic as an option for the lag selection criteria and/or the ability to manually set the lag length?
Thanks!
Thanks!
Re: Spectral Granger Causality Test*
The second suggestion would be more general for any lag desierd by the user, but the first will be easy to implement in the current version of the addin. Thanks for the idea, I will see what I can do.
Regards,
Regards,
Who is online
Users browsing this forum: No registered users and 5 guests