<?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 AUTOREG: forecast values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452896#M283926</link>
    <description>&lt;P&gt;The code it works is the original code I shared. I did not change anything&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 17:02:01 GMT</pubDate>
    <dc:creator>pilicasalv</dc:creator>
    <dc:date>2018-04-10T17:02:01Z</dc:date>
    <item>
      <title>PROC AUTOREG: forecast values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452545#M283922</link>
      <description>&lt;P&gt;I am trying to forecast a time series&amp;nbsp;value for 2026. I have historical data from 1990 to 2016. I am using&amp;nbsp;PROC AUTOREG. When I use the simple linear trend regression, I am able to get the forecast value, but when I use the&amp;nbsp;logarithmic or polynomial model, the forecast values are missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* the linear regression is ok and I can see the 2026 value in the final table&lt;BR /&gt;PROC AUTOREG data=varfinal;&lt;BR /&gt;model&amp;nbsp;Y =&amp;nbsp;TIME / method=ml nlag=5 backstep;&lt;BR /&gt;output out=result1 predicted=Yhat pm=Ytrend lcl=Ylcl ucl=Yucl;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following 2, shows missing values after 2016 Yhat, Ytrendm, Ylcl and Yucl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**** Logarithmic ****/&lt;/P&gt;&lt;P&gt;PROC AUTOREG data=varfinal;&lt;BR /&gt;model Y = TIMELOG / method=ml nlag=5 backstep;&lt;BR /&gt;&lt;SPAN&gt;output out=result2 predicted=Yhat pm=Ytrend lcl=Ylcl ucl=Yucl;&lt;/SPAN&gt;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Polynomial */&lt;/P&gt;&lt;P&gt;PROC AUTOREG &lt;SPAN&gt;&amp;nbsp;data=varfinal;&lt;/SPAN&gt;&lt;BR /&gt;model WIAWW =&amp;nbsp;TIME TIMESQ / method=ml nlag=5 backstep;&lt;BR /&gt;&lt;SPAN&gt;output out=result3 predicted=Yhat pm=Ytrend lcl=Ylcl ucl=Yucl;&lt;/SPAN&gt;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note; TIMELOG= LOG(TIME) and TIMESQ: TIME*TIME&lt;/P&gt;&lt;P&gt;Any help on why I can't see the forecast values in the logarithmic and polynomial case would we useful&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final Note: I found the solution myself. Instead of using DATE: 1990 TO 2016, I used DATE: 1 TO 37&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 16:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452545#M283922</guid>
      <dc:creator>pilicasalv</dc:creator>
      <dc:date>2018-04-16T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC AUTOREG: forecast values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452716#M283923</link>
      <description>&lt;P&gt;What do your actual "time" values look like? You say that you have data from 1990 to 2016 but is each record a single year? Date within the year? Datetime value from the year?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also do you have any interesting notes in log?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452716#M283923</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-10T06:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC AUTOREG: forecast values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452811#M283924</link>
      <description>&lt;P&gt;I should delete the question because it is working now. Only thing I did is to change my variable Time: 1990 to 2026 to time=1 to 37 and I can see forecast values for 3 models.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452811#M283924</guid>
      <dc:creator>pilicasalv</dc:creator>
      <dc:date>2018-04-10T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC AUTOREG: forecast values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452893#M283925</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/174887"&gt;@pilicasalv&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I should delete the question because it is working now. Only thing I did is to change my variable Time: 1990 to 2026 to time=1 to 37 and I can see forecast values for 3 models.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually the appropriate approach is to show the code that worked, any change made to the data if any and mark that post as a solution. That way the solution is available to others and marking the question as solved helps others.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452893#M283925</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-10T16:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC AUTOREG: forecast values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452896#M283926</link>
      <description>&lt;P&gt;The code it works is the original code I shared. I did not change anything&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-AUTOREG-forecast-values/m-p/452896#M283926</guid>
      <dc:creator>pilicasalv</dc:creator>
      <dc:date>2018-04-10T17:02:01Z</dc:date>
    </item>
  </channel>
</rss>

