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
quick question about rangestat (interval)Just want to make sure I am correct. If using rangestat and want to include observations only from …
Translating ice to mi impute and a not positive definite VCEHi all I'm trying to update some imputation code that currently is written using ice to mi impute (…
Saving multiple simulated data using foreach commandDear all, I am a newbie in a simulation study. Here I created one simulated data using foreach comm…
Saving multiple simulated data using foreach commandDear all, I am a newbie in a simulation study. Here I created one simulated data using foreach comm…
Couple questions regarding 3-PL IRT modelIt so happens we need to implement our own parameter estimation for 3PL IRT model in our small in-ho…
Subscribe to:
Post Comments (Atom)
0 Response to Optimal lag selection in Granger Causality tests
Post a Comment