<?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: how to time advance many time series? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47532#M226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use a data step to create a one row table where date = enddate for each time series, then append that to our time series data.&lt;/P&gt;&lt;P&gt;Then, we use proc expand to &lt;EM&gt;zero-fill&lt;/EM&gt; all of the missing days. Now, I know that you do not want to zero-fill, but proc expand does have different interpolation options such as moving average, spline, etc. It could help you vs. proc arima because you can use a by variable in proc expand to do this to all of your time series at once (we fill in all the missing dates across all time series and zero-fill them in one procedure).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 15:02:32 GMT</pubDate>
    <dc:creator>cau83</dc:creator>
    <dc:date>2012-11-02T15:02:32Z</dc:date>
    <item>
      <title>how to time advance many time series?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47527#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I realize the subject line may confuse many, but here's what I'm wondering if someone can help.&amp;nbsp; I have over 1500 time series (stores by products) that have different end dates.&amp;nbsp; For example one store may have thier Price data from Jan'1996 to Jun'2010 and another from March'2000 to Dec'2011, and so on for each different Sore and Product.&amp;nbsp; I also do have other variables other than Price that also ends differently by month and year for each Store x Product (since it's from many different sources). Is there a way in Proc Timeseries or any other procedure that I can compute (in a sense forecast) all data to have a similar end-date for each StorexProduct (for example Dec'2011).&amp;nbsp; I eventually want to use ARIMAX to forecast Prices for the next 12 months, but I have to get all series to the same ending line, or starting line depends how you look at it....&amp;nbsp;&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 18:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47527#M221</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-03-28T18:13:49Z</dc:date>
    </item>
    <item>
      <title>how to time advance many time series?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47528#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Have a look at the START and END options of the ID statement of PROC TIMESERIES. &lt;/P&gt;&lt;P&gt;Combined with the SETMISSING statement you can force all series to start and end at the same data and impute the missing values accordingly if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example (will work with BY variables, too):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc timeseries data=sashelp.workers out=want;&lt;/P&gt;&lt;P&gt;id date interval=month start="01JAN76"d end="31DEC1982"d setmissing=mean;&lt;/P&gt;&lt;P&gt;var electric masonry;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 19:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47528#M222</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2012-03-28T19:34:10Z</dc:date>
    </item>
    <item>
      <title>how to time advance many time series?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47529#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Udo,&amp;nbsp; my only problem is that none of the setmissing options make sense for my data.&amp;nbsp; What I mean by that is that I have a cyclical and season and trend with different hills and valleys all over the place.&amp;nbsp; If I do a mean, it will input a straight line from the last point of the known data.&amp;nbsp; Any idea what I can use to look at previous data wiht the cycles and trends, etc, to get a non linear forecast.&amp;nbsp; Or do I have to use ARIMA if I want that.?&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 20:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47529#M223</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-03-28T20:38:40Z</dc:date>
    </item>
    <item>
      <title>how to time advance many time series?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47530#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;PROC ESM for example features the END option of the ID statement as well. &lt;/P&gt;&lt;P&gt;It might be worthwhile to try and run it on your data without replacing the newly introduced missing values at the end of the series.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;proc esm data=sashelp.workers out=_null_ outfor=want lead=12 plot=forecasts;&lt;/P&gt;&lt;P&gt;id date interval=month start="01JAN76"d end="31DEC1983"d;&lt;/P&gt;&lt;P&gt;forecast electric masonry / model=winters;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;*Note that I'm introducing more than a year of missing values at the end of the series - the multistep forecast handles this pretty well with my test data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you could consider a 2 step process: first run TIMESERIES to make sure that all series end at the same date and then impute the missing values with some more elaborate technique which you have in mind.&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>Wed, 28 Mar 2012 21:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47530#M224</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2012-03-28T21:11:38Z</dc:date>
    </item>
    <item>
      <title>how to time advance many time series?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47531#M225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Udo, I'll give it a try.. Here are my 2 options from what I understand.&lt;/P&gt;&lt;P&gt;1) Use proc esm to forecast all the ending missing data to a set date eg. 31Dec2011&lt;/P&gt;&lt;P&gt;2) Use proc timeseries to end at a certain date eg.31Dec2011 and then use something like ARIMA to forecast the current missing data .. This way is still a littl econfusing as ARIMA will start at the Dec2011 date and not sure how it will fit in each Store x Product differently.. I will try it. '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 13:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47531#M225</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-03-30T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to time advance many time series?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47532#M226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use a data step to create a one row table where date = enddate for each time series, then append that to our time series data.&lt;/P&gt;&lt;P&gt;Then, we use proc expand to &lt;EM&gt;zero-fill&lt;/EM&gt; all of the missing days. Now, I know that you do not want to zero-fill, but proc expand does have different interpolation options such as moving average, spline, etc. It could help you vs. proc arima because you can use a by variable in proc expand to do this to all of your time series at once (we fill in all the missing dates across all time series and zero-fill them in one procedure).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 15:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/how-to-time-advance-many-time-series/m-p/47532#M226</guid>
      <dc:creator>cau83</dc:creator>
      <dc:date>2012-11-02T15:02:32Z</dc:date>
    </item>
  </channel>
</rss>

