<?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: creation and identification of time windows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231769#M42203</link>
    <description>&lt;P&gt;yes, i have ETS. i know about the proc expand, but how i can create in proc expand moving window?&lt;/P&gt;&lt;P&gt;i predicted windows i want only to find the last price and first price, and in the sample&amp;nbsp;window, i want to find some simple statistics, such as mean, total volume... then i want to present it as one row, i.e every big window(in my example 1 hour) .&lt;/P&gt;&lt;P&gt;thank you for your help&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2015 05:25:22 GMT</pubDate>
    <dc:creator>AlexeyS</dc:creator>
    <dc:date>2015-10-27T05:25:22Z</dc:date>
    <item>
      <title>creation and identification of time windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231699#M42178</link>
      <description>&lt;P&gt;Hello, i have a data, and for every day i want to create time&amp;nbsp;Moving window, and then to process all windows. at the end, i will keep only one row for big window and there will be some statistics of every little windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moving window includes two big windows(every one is 30 minutes, of course it can be any number) and every one of them include 3 little windows(every one can be different number but total is 30 minutes)&lt;/P&gt;&lt;P&gt;for example my window is 1 hour, so one window is my sample window is 30 minutes, and then the second window &amp;nbsp;(predicted window) is too 30 minutes. for every window i have to know their id(i have to create id)&lt;/P&gt;&lt;P&gt;what i get &amp;nbsp;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;window : 08:00 - 09:00&lt;/P&gt;&lt;P&gt;sample window : 08:00-08:30&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sample_window1 :08:00-08:05, sample_window2 : 08:05-08:15, sample_window3 : 08:5-08:30&lt;/P&gt;&lt;P&gt;predicted window : 08:30-09:00&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;predicted&lt;/SPAN&gt;_window1 :08:30-08:40, predicted_window2 : 08:40-08:50, predicted_window3 : 08:50-09:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then i have to create interval, for example 10 minutes, and create windows again and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;window : 08:10 - 09:10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sample window : 08:10-08:40&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sample_window1 :08:10-08:15, sample_window2 : 08:15-08:25, sample_window3 : 08:25-08:40&lt;/P&gt;&lt;P&gt;predicted window : 08:40-09:10&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;predicted&lt;/SPAN&gt;_window1 :08:40-08:50, predicted_window2 : 08:50-09:00, predicted_window3 : 09:00-09:10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;off course all times and intervals are macro variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my data example :&lt;/P&gt;&lt;P&gt;time &amp;nbsp; &amp;nbsp; &amp;nbsp;date&lt;/P&gt;&lt;P&gt;08:00 &amp;nbsp; 26/10/15&lt;/P&gt;&lt;P&gt;08:01 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:10 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:15 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:20 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:29 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:37 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:38 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:47 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:54 &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;08:58 &amp;nbsp;&lt;SPAN&gt;26/10/15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do it? &amp;nbsp;thank you!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 18:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231699#M42178</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-10-26T18:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: creation and identification of time windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231715#M42181</link>
      <description>Do you have SAS/ETS? What statistics are you creating?&lt;BR /&gt;&lt;BR /&gt;Depending on the statistics it may be better to use PROC EXPAND rather than to try and create your windows manually.</description>
      <pubDate>Mon, 26 Oct 2015 19:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231715#M42181</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-26T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: creation and identification of time windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231769#M42203</link>
      <description>&lt;P&gt;yes, i have ETS. i know about the proc expand, but how i can create in proc expand moving window?&lt;/P&gt;&lt;P&gt;i predicted windows i want only to find the last price and first price, and in the sample&amp;nbsp;window, i want to find some simple statistics, such as mean, total volume... then i want to present it as one row, i.e every big window(in my example 1 hour) .&lt;/P&gt;&lt;P&gt;thank you for your help&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 05:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231769#M42203</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2015-10-27T05:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: creation and identification of time windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231838#M42221</link>
      <description>Not sure about your final dataset, but the CONVERT statement supports a lot of moving windows.&lt;BR /&gt;&lt;BR /&gt;All of the transformations available, &lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_expand_sect026.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_expand_sect026.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And an example. Here the last one is a moving average and you can specify the window, ie your 30 minutes.&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_expand_sect034.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_expand_sect034.htm&lt;/A&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creation-and-identification-of-time-windows/m-p/231838#M42221</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-27T15:25:52Z</dc:date>
    </item>
  </channel>
</rss>

