<?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: PROC REG vs PROC ARIMA in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/534968#M3441</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ARIMA ULS and the REG OLS methods of parameter estimation are different (unless the ARMA model is trivial, p=q=0).&amp;nbsp; Please refer to the "Estimation Methods" section of the ARIMA doc (&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_details15.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#etsug_arima005101" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_details15.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#etsug_arima005101&lt;/A&gt; ) for additional details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned there, the ULS method (and the ML method) is based on the ARMA correlation structure.&amp;nbsp; ULS method minimizes the weighted sum of squares (the weight matrix being the inverse of the covariance matrix) of the "x" values (x = differenced response values minus the mean structure including the regression and transfer function effects).&amp;nbsp; In the OLS case this covariance matrix will be identity.&amp;nbsp; So the REG and ARIMA parameter estimates will be different.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 19:23:05 GMT</pubDate>
    <dc:creator>rselukar</dc:creator>
    <dc:date>2019-02-12T19:23:05Z</dc:date>
    <item>
      <title>PROC REG vs PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/534584#M3433</link>
      <description>&lt;P&gt;Anyone know why the following produced different estimates?&lt;/P&gt;&lt;P&gt;Both should be the same, correct? Both are estimated via minimizing the SSE.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AR(1) in PROC REG:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;data cej.cej;&lt;/P&gt;&lt;P&gt;set cej.cej;&lt;/P&gt;&lt;P&gt;ClosedEndJuniorLien_Bal_dif = dif(ClosedEndJuniorLien_Bal);&lt;/P&gt;&lt;P&gt;ClosedEndJuniorLien_Bal_dif_lag=lag(ClosedEndJuniorLien_Bal_dif);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;proc reg data=cej.cej;&lt;/P&gt;&lt;P&gt;model ClosedEndJuniorLien_Bal_dif = DEC2015 JUN2018 ClosedEndJuniorLien_Bal_dif_lag;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AR(1) in PROC ARIMA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;proc arima data=cej.cej;&lt;/P&gt;&lt;P&gt;identify var=ClosedEndJuniorLien_Bal(1) scan crosscorr=( DEC2015 JUN2018) stationarity=(adf=6);&lt;/P&gt;&lt;P&gt;estimate p=1 method=uls input=( DEC2015 JUN2018);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Shouldnt the ULS and OLS estimates be the same? What is strange is when the series does not include the lag, the estimates are the same. Why would they be different? Does the PROC step compute lags differently than DATA step?&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 19:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/534584#M3433</guid>
      <dc:creator>Kevin_L_</dc:creator>
      <dc:date>2019-02-11T19:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG vs PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/534968#M3441</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ARIMA ULS and the REG OLS methods of parameter estimation are different (unless the ARMA model is trivial, p=q=0).&amp;nbsp; Please refer to the "Estimation Methods" section of the ARIMA doc (&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_details15.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#etsug_arima005101" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_details15.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#etsug_arima005101&lt;/A&gt; ) for additional details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned there, the ULS method (and the ML method) is based on the ARMA correlation structure.&amp;nbsp; ULS method minimizes the weighted sum of squares (the weight matrix being the inverse of the covariance matrix) of the "x" values (x = differenced response values minus the mean structure including the regression and transfer function effects).&amp;nbsp; In the OLS case this covariance matrix will be identity.&amp;nbsp; So the REG and ARIMA parameter estimates will be different.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 19:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/534968#M3441</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2019-02-12T19:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG vs PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/535025#M3444</link>
      <description>&lt;P&gt;Thank you for the response. Given this, am I to understand there is no way to run obtain OLS estimates of an AR(P) model and forecast it within a PROC. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 21:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/535025#M3444</guid>
      <dc:creator>Kevin_L_</dc:creator>
      <dc:date>2019-02-12T21:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REG vs PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/535044#M3445</link>
      <description>&lt;P&gt;I am not a regular user but I think, by default, VARX models are estimated with OLS in PROC VARMAX (see&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_varmax_details23.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_varmax_details23.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt; ).&amp;nbsp; A quick check seems to work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;retain y 0;&lt;BR /&gt;do t=-10 to 60;&lt;BR /&gt;x = 2 + ranuni(1);&lt;BR /&gt;y = 0.8*y + 5 + 1.5 * x + rannor(2);&lt;BR /&gt;if t &amp;gt; 50 then y = .;&lt;BR /&gt;if t &amp;gt;= 1 then output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;data test;&lt;BR /&gt;set test;&lt;BR /&gt;y1 = lag(y);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=test plots=none;&lt;BR /&gt;model y = y1 x;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc varmax data=test;&lt;BR /&gt;model y = x / p=1;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 22:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-REG-vs-PROC-ARIMA/m-p/535044#M3445</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2019-02-12T22:29:35Z</dc:date>
    </item>
  </channel>
</rss>

