<?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: HPF IDM Demand Interval Prediction Data Export in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/266174#M1716</link>
    <description>Thank you so much! This gives me just what I was looking for.</description>
    <pubDate>Mon, 25 Apr 2016 19:44:15 GMT</pubDate>
    <dc:creator>baimeeker</dc:creator>
    <dc:date>2016-04-25T19:44:15Z</dc:date>
    <item>
      <title>HPF IDM Demand Interval Prediction Data Export</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/265120#M1709</link>
      <description>&lt;P&gt;I am working on a forecast value add project where I plan to compare SAS forecasts for multiple SKUs to our current forecasting system.&amp;nbsp;To do this, I will need to export&amp;nbsp;forecasts for each SKU into a data set that I can compare against our current&amp;nbsp;forecasts.&amp;nbsp;&amp;nbsp;This works fine&amp;nbsp;for SKUs with continuous demand, but in order to compare&amp;nbsp;the forecasts for intermittent demand I will need forecasts for&amp;nbsp;both the Average Demand Size and the Demand Interval for these&amp;nbsp;SKUs.&amp;nbsp; I&amp;nbsp;can&amp;nbsp;export these by SKU, however I'd like to&amp;nbsp;design a data set of forecasts for multiple SKUs.&amp;nbsp; How do I produce the Demand Interval forecasts using the data sets exported from HPF?&amp;nbsp; I can see parameters in OUTEST, but I do not know how to fit those together to get a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using the following code and I am attaching an image to display the ODS output I receive that shows me the interval estimate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TL/DR version is: How does ODS calculate the Demand Interval Prediction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; * assign project settings ;
         %let HPF_SETMISSING=0;
         %let HPF_ZEROMISS=NONE;
         %let ODSSTYLE=STATISTICAL;
         %let HPF_TRIMMISS=BOTH;
         %let HPF_BACK=0;
         %let HPF_START='07Apr2014'd;
         %let HPF_START_ENABLED=0;
         %let HPF_END='14Mar2016'd;
         %let HPF_END_ENABLED=0;
         %let HPF_HORIZON_START='21Mar2016'd;
         %let HPF_HORIZON_START_ENABLED=0;
         %let HPF_SELECT_MINOBS_TREND=2;
         %let HPF_SELECT_MINOBS_SEASONAL=2;
         %let HPF_SELECT_MINOBS_NON_MEAN=2;
         %let HPF_LEAD=4;
         %let HPF_DIAGNOSE_INTERMITTENT=2.0;
        %let HPF_SELECT_HOLDOUT=4;
         %let HPF_SELECT_HOLDOUTPCT=50;
         %let HPF_SELECT_ENDZEROS_MAXNUM=5;
         %let HPF_SELECT_ENDZEROS_MAXPCT=50;
         %let HPF_SELECT_ENDZEROS_MINOBS=1;
         %let HPF_SELECT_CRITERION=MAE;
         %let HPF_COMPONENTS=INTEGRATE;
         %let HPF_FORECAST_ALPHA=0.05;
         %let HPF_RECONCILE_WEIGHTED=;
         %let HPF_RECONCILE_IGNOREMISSF=;
         %let HPF_RECONCILE_LOCKZERO=;
         %let HPF_RESTRICT_OVRD_RECON_DIR=0;
         %let HPF_FORCE_OVRD_CONFLICT_CHECK=1;
         %let HPF_DO_NOT_ALLOW_NEG_FORECAST=;
         %let HPF_CREATE_INDEX_FILES=;
         %let HPF_CREATE_OUTCOMPONENT_DATA_SET=;
         %let HPF_DIAGNOSE_ARIMAX=;
         %let HPF_DIAGNOSE_ESM=;
         %let HPF_RETAINCHOOSE=RETAINCHOOSE;
         %let HPF_SELECTION_LIST=FSDEMO.CUST_REPO.TOP_2;
         %let HPF_OUTLIER_FILTER=SUBSET;
         %let HPF_COMBINE=;
         %let HPF_COMBINE_CRITERION=RMSE;
         %let HPF_COMBINE_MISSMODE=MISSING;
         %let HPF_COMBINE_METHOD=AVERAGE;
         %let HPF_COMBINE_STDERR=DIAG;
         %let HPF_ARIMA_IDENTIFY=BOTH;
         %let HPF_USE_DIAGNOSE=;
         %let HPF_TRANSTYPE=NONE;
         %let HPF_TRANSOPT=MEDIAN;
 proc hpfengine data=_leaf.DATA (where= (corp_item_num=4756656.0 or corp_item_num= 2397586.0))
        inest=_leaf.outest
		seasonality=52
        errorcontrol=(severity=ALL, stage=(PROCEDURELEVEL DATAPREP SELECTION ESTIMATION FORECASTING))
        EXCEPTIONS=CATCH modelrepository=work.TemLevModRep_leaf      
		print=(FORECASTS select estimates)
        task = select( alpha=&amp;amp;HPF_FORECAST_ALPHA criterion=&amp;amp;HPF_SELECT_CRITERION endzeros=(maxnum=&amp;amp;HPF_SELECT_ENDZEROS_MAXNUM) endzeros=(maxpct=&amp;amp;HPF_SELECT_ENDZEROS_MAXPCT) endzeros=(minobs=&amp;amp;HPF_SELECT_ENDZEROS_MINOBS) holdout=&amp;amp;HPF_SELECT_HOLDOUT holdoutpct=&amp;amp;HPF_SELECT_HOLDOUTPCT minobs=&amp;amp;HPF_SELECT_MINOBS_NON_MEAN  minobs=(season=&amp;amp;HPF_SELECT_MINOBS_SEASONAL) minobs=(trend=&amp;amp;HPF_SELECT_MINOBS_TREND)
	
        seasontest=none intermittent=&amp;amp;HPF_DIAGNOSE_INTERMITTENT override)
        back=&amp;amp;HPF_BACK components=&amp;amp;HPF_COMPONENTS lead=&amp;amp;HPF_LEAD
       out=work.out outfor=work.outfor outstat=work.outstat
	   outest=work.outest
        outstatselect=work.outstatselect
        outmodelinfo=work.outmodelinfo
       scorerepository=work.scorerepository outsum=work.outsum
        outcomponent=work.outcomponent
       inevent=_project.EventRepository;
        by client corp_item_num ;
		score;
       id week_of interval=WEEK.2 format=YYMMDD10. acc=total notsorted horizonstart=&amp;amp;HPF_HORIZON_START start=&amp;amp;HPF_START;
       forecast rawdmd /
         setmissing=&amp;amp;HPF_SETMISSING trimmiss=&amp;amp;HPF_TRIMMISS zeromiss=&amp;amp;HPF_ZEROMISS
       ;
	   
       run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using SAS 9.3 and EG 5.1.&amp;nbsp;&amp;nbsp;This is all using Forecast Server 12.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12474i46B165E4C2BE1812/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="2016-04-20 10_49_45-SAS Enterprise Guide - Project3.png" title="2016-04-20 10_49_45-SAS Enterprise Guide - Project3.png" /&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/265120#M1709</guid>
      <dc:creator>baimeeker</dc:creator>
      <dc:date>2016-04-20T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: HPF IDM Demand Interval Prediction Data Export</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/266172#M1715</link>
      <description>&lt;P&gt;The interval and size forecasts are stored in the ODS table called Demands. You can "capture" the ODS table using ODS OUTPUT Demands = idm_demand_predictions; and change the PROC HPFENGINE option PRINT= option to PRINT = ALL. If you don't want all the ODS ouptuts printed in the listing/html output, you can&amp;nbsp;use the following trick before and after the proc call to capture just the Demand ODS table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods exclude all;&lt;BR /&gt;ods output demands = &lt;SPAN&gt;idm_demand_predictions&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc hpfengine ......&amp;nbsp;print = all;&lt;BR /&gt;&amp;nbsp;......&lt;BR /&gt; run;&lt;BR /&gt;ods exclude none;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 19:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/266172#M1715</guid>
      <dc:creator>alexchien</dc:creator>
      <dc:date>2016-04-25T19:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: HPF IDM Demand Interval Prediction Data Export</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/266174#M1716</link>
      <description>Thank you so much! This gives me just what I was looking for.</description>
      <pubDate>Mon, 25 Apr 2016 19:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/HPF-IDM-Demand-Interval-Prediction-Data-Export/m-p/266174#M1716</guid>
      <dc:creator>baimeeker</dc:creator>
      <dc:date>2016-04-25T19:44:15Z</dc:date>
    </item>
  </channel>
</rss>

