<?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: Divide data into intervals and run regression for each interval in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285334#M15076</link>
    <description>&lt;P&gt;&lt;SPAN&gt;18JUN2016 looks more like a SAS date than a SAS time or a SAS datetime, but, of course, it could be a SAS datetime value, formatted as a date.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Assuming those times are SAS datetimes, you can assign them to the center of 10 minute bins with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myData10min;
set myData;
time10min = intnx("minute10.", time, 0, "MIDDLE");
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 18:41:18 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-07-18T18:41:18Z</dc:date>
    <item>
      <title>Divide data into intervals and run regression for each interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285299#M15074</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to divide transaction data into ten minute intervals and then run a regression for the data of each interval. So for each time t, for example 18JUN2016, I have the respective transaction volume and price change. I was trying the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc timeseries&lt;BR /&gt;data=datasets.&amp;amp;symbol.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;out=datasets.&amp;amp;symbol._10min;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;id time interval=MINUTE10.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;accumulate=NONE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which didn't lead to a result. I wanted to, firstly, "cut off" the data for the first 10min interval to later run a regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm grateful for every hint!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 17:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285299#M15074</guid>
      <dc:creator>Helli</dc:creator>
      <dc:date>2016-07-18T17:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Divide data into intervals and run regression for each interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285323#M15075</link>
      <description>&lt;P&gt;Assuming you have a time variable, look at the round function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time is represented in seconds so ten minutes is 600&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;roumd(var,600) will group your data into 10 minute intervals.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 18:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285323#M15075</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-18T18:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Divide data into intervals and run regression for each interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285334#M15076</link>
      <description>&lt;P&gt;&lt;SPAN&gt;18JUN2016 looks more like a SAS date than a SAS time or a SAS datetime, but, of course, it could be a SAS datetime value, formatted as a date.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Assuming those times are SAS datetimes, you can assign them to the center of 10 minute bins with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myData10min;
set myData;
time10min = intnx("minute10.", time, 0, "MIDDLE");
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 18:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Divide-data-into-intervals-and-run-regression-for-each-interval/m-p/285334#M15076</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-07-18T18:41:18Z</dc:date>
    </item>
  </channel>
</rss>

