<?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 How to forecast TimeSeries data dependent on same time and day of week in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914006#M45372</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have a SAS dataset that has transactions count by hour for 3 years.&lt;/P&gt;&lt;P&gt;The count of transactions at a specific hour depends on the same hour and day of the previous n weeks.&lt;/P&gt;&lt;P&gt;Example, The transaction count of future Tuesday 10AM, depends on all the past Tuesdays 10AM values.&lt;/P&gt;&lt;P&gt;The value at Thurdsay 6 PM would depend on all past Thursday 6PM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me a starting program to forecast this for the next day. Thank you. I have tried using PROC ARIMA with NLAG=168. But that doesn't seem to work, the forecast for 00:00 hours starts at high value and then the forecast value tends to move to zero by 23:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC ARIMA DATA=PDB.UNIFIED_TS;&lt;BR /&gt;IDENTIFY VAR=SALES NLAG=168;&lt;BR /&gt;ESTIMATE P=1 Q=1;&lt;BR /&gt;RUN;&lt;BR /&gt;FORECAST LEAD=168 INTERVAL=HOUR ID=DATETIME OUT=PDB.RESULTS;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried using PROC UCM, but I am not sure what I am doing wrong there.&lt;/P&gt;&lt;P&gt;PROC UCM DATA=TIMESER_TS;&lt;BR /&gt;ID DATETM INTERVAL=HOUR;&lt;BR /&gt;MODEL MSU;&lt;BR /&gt;IRREGULAR;&lt;BR /&gt;LEVEL;&lt;BR /&gt;SLOPE;&lt;BR /&gt;SEASON LENGTH=24 TYPE=TRIG;&lt;BR /&gt;ESTIMATE;&lt;BR /&gt;FORECAST LEAD=48 OUTFOR=FORE_UCM;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vasanth.S&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 13:31:13 GMT</pubDate>
    <dc:creator>vasanthz</dc:creator>
    <dc:date>2024-02-01T13:31:13Z</dc:date>
    <item>
      <title>How to forecast TimeSeries data dependent on same time and day of week</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914006#M45372</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have a SAS dataset that has transactions count by hour for 3 years.&lt;/P&gt;&lt;P&gt;The count of transactions at a specific hour depends on the same hour and day of the previous n weeks.&lt;/P&gt;&lt;P&gt;Example, The transaction count of future Tuesday 10AM, depends on all the past Tuesdays 10AM values.&lt;/P&gt;&lt;P&gt;The value at Thurdsay 6 PM would depend on all past Thursday 6PM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me a starting program to forecast this for the next day. Thank you. I have tried using PROC ARIMA with NLAG=168. But that doesn't seem to work, the forecast for 00:00 hours starts at high value and then the forecast value tends to move to zero by 23:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC ARIMA DATA=PDB.UNIFIED_TS;&lt;BR /&gt;IDENTIFY VAR=SALES NLAG=168;&lt;BR /&gt;ESTIMATE P=1 Q=1;&lt;BR /&gt;RUN;&lt;BR /&gt;FORECAST LEAD=168 INTERVAL=HOUR ID=DATETIME OUT=PDB.RESULTS;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried using PROC UCM, but I am not sure what I am doing wrong there.&lt;/P&gt;&lt;P&gt;PROC UCM DATA=TIMESER_TS;&lt;BR /&gt;ID DATETM INTERVAL=HOUR;&lt;BR /&gt;MODEL MSU;&lt;BR /&gt;IRREGULAR;&lt;BR /&gt;LEVEL;&lt;BR /&gt;SLOPE;&lt;BR /&gt;SEASON LENGTH=24 TYPE=TRIG;&lt;BR /&gt;ESTIMATE;&lt;BR /&gt;FORECAST LEAD=48 OUTFOR=FORE_UCM;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vasanth.S&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 13:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914006#M45372</guid>
      <dc:creator>vasanthz</dc:creator>
      <dc:date>2024-02-01T13:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to forecast TimeSeries data dependent on same time and day of week</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914007#M45373</link>
      <description>&lt;P&gt;Pardon my ignorance, I am a base programmer and don't have much knowledge on statistics and learning now.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 13:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914007#M45373</guid>
      <dc:creator>vasanthz</dc:creator>
      <dc:date>2024-02-01T13:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to forecast TimeSeries data dependent on same time and day of week</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914158#M45378</link>
      <description>It is a question about SAS/ETS.&lt;BR /&gt;Better post it at Forecasting forum:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also you could try PROC ESM .&lt;BR /&gt;And I quoted:&lt;BR /&gt;"The ESM procedure generates forecasts by using exponential smoothing models with optimized smoothing&lt;BR /&gt;weights for many time series or transactional data."</description>
      <pubDate>Fri, 02 Feb 2024 05:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-forecast-TimeSeries-data-dependent-on-same-time-and-day/m-p/914158#M45378</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-02-02T05:04:02Z</dc:date>
    </item>
  </channel>
</rss>

