AR lags

Questions and discussions on Time Series Analysis

AR lags

Postby Snow » Thu Jun 14, 2012 2:01 pm

Dear Tom:
I'm trying to get the best lags for my AR(p), and I'm wondering can I get that by using Varlagselect or there is some special program for AR model's lag. Thank you
Snow
 
Posts: 9
Joined: Fri May 18, 2012 9:16 am

Re: AR legs

Postby Snow » Thu Jun 14, 2012 3:51 pm

I'm trying to forecasting my AR(p) and here is my code, qurterly GDP = qgdp, assuming the lag is 3 and I'm doing on-step forecast :

linreg qgdp
# constant qgdp{1 to 3}
uforecast(STATIC) fqgdp 2000:1 2011:4
@uforeerrors qgdp fqgdp

Am I right forecasting the gdp?
Snow
 
Posts: 9
Joined: Fri May 18, 2012 9:16 am

Re: AR legs

Postby TomDoan » Thu Jun 14, 2012 4:31 pm

Snow wrote:Dear Tom:
I'm trying to get the best lags for my AR(p), and I'm wondering can I get that by using Varlagselect or there is some special program for AR model's lag. Thank you


You can, though there's also an @ARAUTOLAGS procedure (http://www.estima.com/forum/viewtopic.php?f=7&t=236) that's specifically designed for autoregressions. Note, however, that @ARAUTOLAGS is designed for stationary processes, while @VARLAGSELECT allows non-stationary models.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: AR legs

Postby TomDoan » Thu Jun 14, 2012 4:33 pm

Snow wrote:I'm trying to forecasting my AR(p) and here is my code, qurterly GDP = qgdp, assuming the lag is 3 and I'm doing on-step forecast :

linreg qgdp
# constant qgdp{1 to 3}
uforecast(STATIC) fqgdp 2000:1 2011:4
@uforeerrors qgdp fqgdp

Am I right forecasting the gdp?


That's correct. One-step ahead forecasts for QGDP.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: AR lags

Postby Snow » Thu Jun 14, 2012 7:42 pm

Thanks Tom!!
Snow
 
Posts: 9
Joined: Fri May 18, 2012 9:16 am


Return to Other Time Series Analysis

Who is online

Users browsing this forum: No registered users and 1 guest