Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Optimal lag selection in Granger Causality tests

    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

  • #2
    Cross-posted and answered at https://stackoverflow.com/questions/...ausality-tests

    You should be familiar with our policy on cross-posting, explicit in the FAQ Advice everyone is enjoined to read before posting.

    https://www.statalist.org/forums/help#crossposting

    -- namely to tell people that you have cross-posted.

    Some people regard cross-posting without telling a forum about it as offensive, such that you don't care about the possibility of wasted time if people post answers in various places. I don't agree -- usually it's just a little inconsiderate -- but the attitude does exist.

    Comment

    Working...
    X