<?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: Exception with Proc Forecast when specifying SEASONS = MONTH in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498911#M3358</link>
    <description>&lt;P&gt;Thanks! Do you know what is the default seasonality if I specify method = ADDWINTERS? I could not find it anywhere in the documents.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 01:46:57 GMT</pubDate>
    <dc:creator>roushankumar</dc:creator>
    <dc:date>2018-09-26T01:46:57Z</dc:date>
    <item>
      <title>Exception with Proc Forecast when specifying SEASONS = MONTH</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498094#M3352</link>
      <description>&lt;P&gt;I have my data at weekly intervals. I wanted to use a Winters model and since proc esm did not let me choose the smoothing weights I turned to proc forecast. This procedure works fine until I specify seasons=month. Please help solve this or suggest an alternative way to implement Winters method with smoothing weights of my choice. I got the following exception when I used seasons = month in proc forecast&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: An exception has been encountered.&lt;BR /&gt;Please contact technical support and provide them with the following traceback information:&lt;BR /&gt;&lt;BR /&gt;The SAS task name is [FORECAST]&lt;BR /&gt;Segmentation Violation&lt;BR /&gt;&lt;BR /&gt;Traceback of the Exception:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: An exception has been encountered.&lt;BR /&gt;107 The SAS System 17:44 Saturday, September 22, 2018&lt;/P&gt;&lt;P&gt;Please contact technical support and provide them with the following traceback information:&lt;BR /&gt;&lt;BR /&gt;The SAS task name is [FORECAST]&lt;BR /&gt;Segmentation Violation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 18:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498094#M3352</guid>
      <dc:creator>roushankumar</dc:creator>
      <dc:date>2018-09-22T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exception with Proc Forecast when specifying SEASONS = MONTH</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498747#M3356</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;SEASONS=(MONTH DAY) specifies that 7 day-of-week seasons are nested within 12 month-of-year seasons. The different kinds of intervals can be listed in the SEASONS= option in any order. Note that the Winters method smoothing equations might be less stable when multiple seasonal factors are used. [1]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might help to use the ADDWINTERS method instead.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;METHOD=WINTERS&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specifies the Holt-Winters exponentially smoothed trend-seasonal method.&lt;/P&gt;METHOD=ADDWINTERS&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specifies the additive seasonal factors variant of the Winters method. [2]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;U&gt;References&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_forecast_sect024.htm" target="_blank"&gt;Specifying Seasonality&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_forecast_sect016.htm" target="_blank"&gt;PROC FORECAST Statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 02:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498747#M3356</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-26T02:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception with Proc Forecast when specifying SEASONS = MONTH</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498911#M3358</link>
      <description>&lt;P&gt;Thanks! Do you know what is the default seasonality if I specify method = ADDWINTERS? I could not find it anywhere in the documents.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 01:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498911#M3358</guid>
      <dc:creator>roushankumar</dc:creator>
      <dc:date>2018-09-26T01:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception with Proc Forecast when specifying SEASONS = MONTH</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498930#M3359</link>
      <description>&lt;P&gt;There is some information in the Forecasting Methods section [1].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Winters method, it says,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;When the SEASONS= option is not specified, the seasonal factors&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mbox"&gt;&lt;EM&gt;s&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;EM&gt;t&lt;/EM&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;are not included in the model.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For Addwinters method, it says,&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;The ADDWINTERS method is like the WINTERS method except that the seasonal parameters are added to the trend instead of multiplied with the trend.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Therefore, I am assuming that the seasonal factors are not included in the Addwinters model by default, too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Reference&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_forecast_sect023.htm" target="_blank"&gt;PROC FORECAST: Forecasting Methods&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 02:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/498930#M3359</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-26T02:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exception with Proc Forecast when specifying SEASONS = MONTH</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/499573#M3362</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/231315"&gt;@roushankumar&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The segmentation violation error you observed in PROC FORECAST&amp;nbsp;when specifying&amp;nbsp;INTERVAL=WEEK and SEASONS=MONTH&amp;nbsp;appears to be&amp;nbsp;due to the fact that&amp;nbsp;weeks do not nest within months (or years).&amp;nbsp; In other words, some&amp;nbsp;weeks in the&amp;nbsp;input data set&amp;nbsp;span two different months.&amp;nbsp; For this very reason, modeling seasonal variation in weekly data&amp;nbsp;can be&amp;nbsp;particularly challenging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because PROC FORECAST is considered to be obsolete (see the Overview section of the FORECAST procedure documentation for details), you might want to consider some other approaches for modeling and forecasting your weekly data.&amp;nbsp; PROC UCM might be your best alternative.&amp;nbsp; For example, you could define monthly dummy variables and then include them in either the MODEL statement as simple regressors or in the RANDOMREG statement if you want the coefficients of these regressors to vary over time.&amp;nbsp; A similar alternative is to examine your weekly data and define dummy variables for the weeks in your&amp;nbsp;series that are higher/lower than average from year to year.&amp;nbsp; You can then specify those dummy variables--rather than monthly dummy variables--in your model.&amp;nbsp; This alternative is helpful when you have&amp;nbsp;seasonal variation that does not occur in a specific month from year to year, such as an Easter effect, which might occur in March or April.&amp;nbsp; Another alternative&amp;nbsp;is to use the BLOCKSEASON statement in PROC UCM to define blocks of 4 contiguous weeks (to approximate&amp;nbsp;1 month)&amp;nbsp;with 13 seasons per year.&amp;nbsp; For example, for weekly data:&lt;/P&gt;
&lt;P&gt;BLOCKSEASON BLOCKSIZE=4 NBLOCKS=13;&amp;nbsp;&amp;nbsp;produces a seasonal cycle of 4*13=52 weeks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information and these suggestions are helpful!&amp;nbsp; Links to the aforementioned sections of the documentation are noted below.&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FORECAST - Overview&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_forecast_overview.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;http://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_forecast_overview.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC UCM - RANDOMREG statement&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_syntax18.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;http://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_syntax18.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC UCM - BLOCKSEASON statement&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_syntax04.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;http://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_syntax04.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 16:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Exception-with-Proc-Forecast-when-specifying-SEASONS-MONTH/m-p/499573#M3362</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2018-09-27T16:09:20Z</dc:date>
    </item>
  </channel>
</rss>

