<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Forecast Autoregressive Error Model with PROC ARIMA in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305105#M1977</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not quite sure what you need. &amp;nbsp;Can you please give me the precise model that you want to specify using ARIMA? &amp;nbsp;What are AR and MA orders, differencing orders, response variable, and predictors, etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, when you specify the NOEST option, you must specify the values of all the parameters (except the error variance).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. &amp;nbsp;I am traveling overseas. &amp;nbsp;I will try to answer your question after reaching my destination in about two days. &amp;nbsp;If you need an answer sooner, you can try the Tech Support.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2016 14:27:13 GMT</pubDate>
    <dc:creator>rselukar</dc:creator>
    <dc:date>2016-10-17T14:27:13Z</dc:date>
    <item>
      <title>Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/304645#M1970</link>
      <description>&lt;P&gt;I'm wondering how to forecast a published autoregressive error model, estimated in PROC AUTOREG,&amp;nbsp;using PROC ARIMA. I have some data I would like to a monthly time series, for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data inputs;
input month y var1 var2 var3 var4
datalines
1    200    150    3    6    8
2    300    200    8    4    8
3    270    300    4    3    1
4    250    270    7    4    5
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where var 1 is a lagged dependent variable. Suppose I estimate the following model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc autoreg data=some_data outest=params;
model y = var1 var2 var3 var4 / 
lagdep=var1 method=ml nlag=12 backstep;
output out=model p=yhat r=residuals;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where var1 is a lagged dependent variable, and var2-var4 are some explanatory variables. The final model contains an AR(3) parameter for the model of the error series. If this model was estimated 1 year ago, and I want to produce a multistep forecast of the model today, I might use PROC ARIMA coupled with the "Noest" option to suppress estimation of the model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc arima data=some_forecast_data plots(unpack)=forecast(all);
identify var=y crosscorr(=var2 var3 var4);
estimate p=(1) ar=0.2343 mu=7.9534
input=(/(1)var2 /(1)var3 /(1)var4)
initval=(-0.564$/(0.2343)var2 
            0.0041$/(0.2343)var3
            0.1753$/(0.2343)var4
           ) noest;
forecast id=month interval=month lead=25 out=forecast_data nooutall;
run;
  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not include the AR(3) parameter of the autoregessive error model. How can I include the additional AR terms for the autoregressive error model? How does PROC ARIMA handle the model of the residual series if the model is not re-estimated?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/304645#M1970</guid>
      <dc:creator>eric_sas_1</dc:creator>
      <dc:date>2016-10-14T12:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305105#M1977</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not quite sure what you need. &amp;nbsp;Can you please give me the precise model that you want to specify using ARIMA? &amp;nbsp;What are AR and MA orders, differencing orders, response variable, and predictors, etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, when you specify the NOEST option, you must specify the values of all the parameters (except the error variance).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. &amp;nbsp;I am traveling overseas. &amp;nbsp;I will try to answer your question after reaching my destination in about two days. &amp;nbsp;If you need an answer sooner, you can try the Tech Support.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305105#M1977</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-10-17T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305116#M1978</link>
      <description>&lt;P&gt;I estimated&amp;nbsp;the following model in PROC AUTOREG using maximum likelihood (method=ml), specifying nlag=12 and the backstep option to automtically select the autoregressive order.&lt;/P&gt;&lt;P&gt;&lt;IMG title="equation.jpg" alt="equation.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/5321i50D92F4819F3B3F2/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;where y_(t-1) is a lagged dependent variable and z_t is an array of explanatory variables. Because this model was&amp;nbsp;estimated with nlag and backstep, SAS automatically selects the autoregressive error model for the noise series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, the estimated model is:&lt;/P&gt;&lt;P&gt;&lt;IMG title="equation_2.jpg" alt="equation_2.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/5322iF6BC2916DEE8D90F/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;This model was estimated approx 1 yr ago, and I want to forecast this model in PROC ARIMA without re-estimating the model, thus using the NOEST option. I'm wondering how to forecast this model, including the AR(3) parameter for v_t, estimated by PROC AUTOREG using PROC&amp;nbsp;ARIMA without re-estimating the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 15:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305116#M1978</guid>
      <dc:creator>eric_sas_1</dc:creator>
      <dc:date>2016-10-17T15:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305568#M1981</link>
      <description>&lt;P&gt;Based on your final model (treating x1-x3 as var2-var4), I would modify your syntax as follows:&lt;/P&gt;
&lt;P&gt;proc arima data=test plots(unpack)=forecast(all);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;identify var=y cosscorr=(var2 var3 var4);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;estimate p=(3) ar=0.213 mu=3.6435&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initval=(0.0263 var2 -0.2567 var3 -0.1329 var4) noest;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;forecast id=month interval=month lead=25 out=forecast_data nooutall;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that your AR model has just one term of order 3, which is signified by p=(3).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 00:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305568#M1981</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-10-19T00:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305656#M1984</link>
      <description>&lt;P&gt;Forgot to include the input part:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc arima data=test plots(unpack)=forecast(all);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;identify var=y cosscorr=(var2 var3 var4);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;estimate p=(3) ar=0.213 mu=3.6435&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input&lt;SPAN&gt;=(var2 var3 var4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initval=(0.0263 var2 -0.2567 var3 -0.1329 var4) noest;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;forecast id=month interval=month lead=25 out=forecast_data nooutall;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305656#M1984</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-10-19T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305658#M1985</link>
      <description>&lt;P&gt;Thanks. What about the lagged dependent variable? Shouldn't that be specified as an AR(1)?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305658#M1985</guid>
      <dc:creator>eric_sas_1</dc:creator>
      <dc:date>2016-10-19T13:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305659#M1986</link>
      <description>&lt;P&gt;I forgot to include that in the above model. My fault. There proper model should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Y_t = 3.6435 + 0.0422 Y_(t-1) + 0.0263 x_1 -0.2567 x_2 - 0.1329 x_3 + v_t,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the same AR(3)&amp;nbsp;autoregressive error structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305659#M1986</guid>
      <dc:creator>eric_sas_1</dc:creator>
      <dc:date>2016-10-19T13:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305664#M1987</link>
      <description>&lt;P&gt;As far as just the spec is concerned, ARIMA does not know that var1 is a lagged y value. &amp;nbsp;Its spec will be like other regressors (V2, V3, and V4). &amp;nbsp;I find your model odd. &amp;nbsp;You will not have future values of var1 in the forecast period and then the forecasts cannot be produced. &amp;nbsp;Specifying an AR term does not mean including lagged y-values as regressors.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/305664#M1987</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-10-19T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/306874#M1992</link>
      <description>&lt;P&gt;I see your point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it is possible to produce multistep forecasts for dynamic models whereby the forecasted values are produced using lagged forecasted values rather than lagged actual values (i.e. this can be done in PROC SIMLIN). However, with the model of the error series (in this case AR3), is it possible to forecast this in PROC SIMLIN or PROC ARIMA? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/306874#M1992</guid>
      <dc:creator>eric_sas_1</dc:creator>
      <dc:date>2016-10-24T16:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/306988#M1993</link>
      <description>&lt;P&gt;In that case, the term associated with var1 must become part of the AR spec. &amp;nbsp;In fact, in your first spec you had tried something like that already. &amp;nbsp;Anyway, here is what it would look like (you might have to play with the signs of the coefficients so that they conform to the ARIMA syntax convention):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc arima data=test plots(unpack)=forecast(all);&lt;BR /&gt; identify var=y cosscorr=(var2 var3 var4);&lt;BR /&gt; estimate p=(1)(3) ar=0.0422 0.213 mu=3.80403&lt;BR /&gt; input=(/1 var2 /1 var3 /1 var4)&lt;BR /&gt; initval=(0.0263$/(0.0422)var2 &lt;BR /&gt; -0.2567$/(0.0422)var3 &lt;BR /&gt; -0.1329$/(0.0422)var4) noest;&lt;BR /&gt; forecast id=month interval=month lead=25 out=forecast_data nooutall;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here mu=3.6435/(1-&lt;SPAN&gt;0.0422)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 23:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/306988#M1993</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-10-24T23:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/306993#M1994</link>
      <description>&lt;P&gt;Thanks for the clarification.&amp;nbsp;That confirmed what I previously thought. Quick follow up:&amp;nbsp;Is it possible to forecast that type of dynamic autoregressive error model in PROC SIMLIN, or any other SAS procedures besides PROC ARIMA? It's a cumbersome syntax for what is really a quite simple model.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 00:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/306993#M1994</guid>
      <dc:creator>eric_sas_1</dc:creator>
      <dc:date>2016-10-25T00:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Autoregressive Error Model with PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/307000#M1995</link>
      <description>&lt;P&gt;I agree about the tediousness of ARIMA syntax. &amp;nbsp;Unfortunately, I cannot think of any other option for you for such a spec.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 01:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecast-Autoregressive-Error-Model-with-PROC-ARIMA/m-p/307000#M1995</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2016-10-25T01:12:57Z</dc:date>
    </item>
  </channel>
</rss>

