I use [TS] varsoc to obtain the optimum lag length for the Granger causality test. This command reports the optimal number of lags based on different criteria such as Akaike's information criterion (AIC).
Is there any way to store the optimal lag number (obtained based on AIC) in a variable and use it in the next command to estimate causality? Something like this:
Lag= varsoc X Y
tvgc X Y, p(Lag) d(Lag) trend window(30) prefix(_) graph
Related Posts with Optimal lag selection in Granger Causality tests
Fixed effects in bar chartHello everybody, I am trying to find out if there is a relationship between business tax increases …
SEM: estimating curvilinear effectsHello, I need some advice on whether what I want to do is nonsense because I didn't find previous e…
Calculate time variable for survival analysis with panel dataDear Statalisters, I want to study the impact of a migrants language proficiency and best friends …
Help with strtrim 2Hello, I am new to Stata and I am having the same problem as Alyssa Beavers mentioned in her post "…
Bootstrapping error in opreg Hi. I'm running opreg with Stata11 on an unbalanced panel with 1155996 firm-level observations. I h…
Subscribe to:
Post Comments (Atom)
0 Response to Optimal lag selection in Granger Causality tests
Post a Comment