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
boxplotDear all, I have subdivided my particpants into 3 group based on bmi (0, 1, 2). i want to plot (box …
Testing for overdispersion glm negative binomial regressionHi, I am working with time series count data. I use Newey-West SEs and therefore need to use the gl…
Merging new variable conditioned on two other observationsHi people, I am currently working on a datasets that consists of customer booking information acros…
Use of repest for carrying out multilevel analysis with PIAACDear members of the list, I am trying to run a multilevel analysis using PIAAC data. Knowing the c…
Calculate median with conditionsI want to calculate the median of a variable with certain restrictions. I know that -sum variable, d…
Subscribe to:
Post Comments (Atom)
0 Response to Optimal lag selection in Granger Causality tests
Post a Comment