<?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 Forecast Error in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Forecast-Error/m-p/195863#M1212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Your data is on daily frequency, but you are asking PROC FORECAST to generate a forecast on yearly frequency. This is why the procedure is complaining.&lt;/P&gt;&lt;P&gt;To address the situation you will need to accumulate your data first.&lt;/P&gt;&lt;P&gt;Alternatively you may want to consider PROC ESM, which allows you to deal with this challenge in one step.&lt;/P&gt;&lt;P&gt;Example (going from monthly to yearly by adding up values - syntax for going from daily to yearly does not change):&lt;/P&gt;&lt;P&gt;proc esm data=sashelp.air out=_null_ outfor=outfor plot=forecasts lead=3;&lt;/P&gt;&lt;P&gt;id date interval=year accumulate=total;&lt;/P&gt;&lt;P&gt;forecast air /method=linear;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Note that you will need to decide which ESM technique to use - in the example above method=linear seems to make sense.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 21:26:38 GMT</pubDate>
    <dc:creator>udo_sas</dc:creator>
    <dc:date>2015-03-06T21:26:38Z</dc:date>
    <item>
      <title>Proc Forecast Error</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Forecast-Error/m-p/195862#M1211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys. Doing some proc forecast work but running into some trouble. Here is my code. A snapshot of what my data looks like is also below. I would greatly appreciate the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;FORECAST&lt;/STRONG&gt;&lt;/SPAN&gt; data=sasuser.nader_excel method=exp interval=year lead=&lt;SPAN class="s2"&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;out=foreexsm outactual out1step;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;VAR&lt;/SPAN&gt; aus;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;ID&lt;/SPAN&gt; date;&lt;/P&gt;&lt;P class="p2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I have spent hours trying to get around this error and nothing. I ran into one forum post on this issue and it not get resolved.&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;errERROR: Duplicate time interval found at observation number 2 according to the INTERVAL=YEAR&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option and the ID variable values. The current ID is DATE=02AUG1926 and the previous is&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE=31JUL1926, which are within the same YEAR interval.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;&lt;IMG alt="Screen Shot 2015-03-05 at 11.51.56 PM.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/9474_Screen Shot 2015-03-05 at 11.51.56 PM.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 07:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Forecast-Error/m-p/195862#M1211</guid>
      <dc:creator>ali_hash</dc:creator>
      <dc:date>2015-03-06T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Forecast Error</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Forecast-Error/m-p/195863#M1212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Your data is on daily frequency, but you are asking PROC FORECAST to generate a forecast on yearly frequency. This is why the procedure is complaining.&lt;/P&gt;&lt;P&gt;To address the situation you will need to accumulate your data first.&lt;/P&gt;&lt;P&gt;Alternatively you may want to consider PROC ESM, which allows you to deal with this challenge in one step.&lt;/P&gt;&lt;P&gt;Example (going from monthly to yearly by adding up values - syntax for going from daily to yearly does not change):&lt;/P&gt;&lt;P&gt;proc esm data=sashelp.air out=_null_ outfor=outfor plot=forecasts lead=3;&lt;/P&gt;&lt;P&gt;id date interval=year accumulate=total;&lt;/P&gt;&lt;P&gt;forecast air /method=linear;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Note that you will need to decide which ESM technique to use - in the example above method=linear seems to make sense.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 21:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-Forecast-Error/m-p/195863#M1212</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2015-03-06T21:26:38Z</dc:date>
    </item>
  </channel>
</rss>

