<?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 SAS ETS Date Variable in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59028#M268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andreas -&lt;/P&gt;&lt;P&gt;In my opinion it depends on the business problem you have at hand. If there is no record in your time series data due to a public holiday the question becomes: was that to be expected? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if in a retail context stores are closed due to a public holiday I would replace these missing values with 0 - as in "no sales". In an energy demand forecasting context a missing value on a public holiday seems to indicate that there was a problem capturing the true demand, so 0 might not be appropriate and maybe replacing the missing value with a mean, median, etc., is the better strategy. In general it might be worthwhile to flag these replacements with a dummy variable (or an event), as it might become useful for modeling purposes later on - for example if the same holiday occurs again in the future you might want to tell your model about it so it can react appropriately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you may know, SAS High-Performance Forecasting features a procedure called HPFEVENTS which makes it very convenient to deal with these kinds of events. This procedure can also be accessed via SAS Forecast Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In additon, as you have pointed out already, if missing values are reoccurring regularly due to no sales on weekends for example, you can tell the SAS procedures about it by using the appropriate date format - such as WEEKDAY for example. In this case there is no need need to fill gaps in your time series at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 21:29:43 GMT</pubDate>
    <dc:creator>udo_sas</dc:creator>
    <dc:date>2011-12-02T21:29:43Z</dc:date>
    <item>
      <title>SAS ETS Date Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59027#M267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order for the SAS ETS procedures to work there should be a date variable in the data set. This variable must be equally spaced. If there are missing values we should place the ".". If there are non working days e.g. weekends then we should not include any dates that correspond to weekends. So, for example, if 4th of May is Saturday and the weeends are non working days then date variable should be like this:&lt;BR /&gt;May, 3&lt;BR /&gt;May, 6&lt;BR /&gt;.&lt;BR /&gt;May, 10&lt;BR /&gt;May, 13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;What if we have a working day e.g. Wednsesday that was a public holiday. We must include this date, otherwise the date would not be equally spaced. What value should we put for our variable of interest corresponding to this date? Is it goint to be the regular missing value "." or something else to declare that this was a working day but exceptionally it is non working day because of the public holiday?&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;Andreas &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 11:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59027#M267</guid>
      <dc:creator>andreas_zaras</dc:creator>
      <dc:date>2011-12-02T11:43:55Z</dc:date>
    </item>
    <item>
      <title>SAS ETS Date Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59028#M268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andreas -&lt;/P&gt;&lt;P&gt;In my opinion it depends on the business problem you have at hand. If there is no record in your time series data due to a public holiday the question becomes: was that to be expected? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if in a retail context stores are closed due to a public holiday I would replace these missing values with 0 - as in "no sales". In an energy demand forecasting context a missing value on a public holiday seems to indicate that there was a problem capturing the true demand, so 0 might not be appropriate and maybe replacing the missing value with a mean, median, etc., is the better strategy. In general it might be worthwhile to flag these replacements with a dummy variable (or an event), as it might become useful for modeling purposes later on - for example if the same holiday occurs again in the future you might want to tell your model about it so it can react appropriately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you may know, SAS High-Performance Forecasting features a procedure called HPFEVENTS which makes it very convenient to deal with these kinds of events. This procedure can also be accessed via SAS Forecast Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In additon, as you have pointed out already, if missing values are reoccurring regularly due to no sales on weekends for example, you can tell the SAS procedures about it by using the appropriate date format - such as WEEKDAY for example. In this case there is no need need to fill gaps in your time series at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 21:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59028#M268</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2011-12-02T21:29:43Z</dc:date>
    </item>
    <item>
      <title>SAS ETS Date Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59029#M269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To take it a step further, one can create a custom interval to reflect the holiday pattern. See&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.sascommunity.org/wiki/Generating_Holiday_Lists#Custom_Intervals"&gt;http://www.sascommunity.org/wiki/Generating_Holiday_Lists#Custom_Intervals&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 22:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-ETS-Date-Variable/m-p/59029#M269</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2011-12-09T22:35:44Z</dc:date>
    </item>
  </channel>
</rss>

