Does anyone know how to estimate an Autoregressive Distributed Lag Model in stata? Also called Bounds Testing method (Pesaran 2001)
-
Login or Register
- Log in with
local maxlag = 4 local sbcstar = . local pstar = 0 local qstar = 0 local p = 1 while `p' <= `maxlag' { local q = 0 while `q' <= `maxlag' { reg L(0/`p').depvar L(0/`q').indepvar if time >= 1 + `maxlag' estat ic mat stats = r(S) local sbc = el(stats, 1, 6) if `sbc' < `sbcstar' { local sbcstar = `sbc' local pstar = `p' local qstar = `q' } local ++q } local ++p } reg L(0/`pstar').depvar L(0/`qstar').indepvar if time >= 1 + `maxlag'
Comment