<?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 cumulative return for repeated indexing in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/cumulative-return-for-repeated-indexing/m-p/110750#M30711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a huge financial dataset (TAQ with 5 minutes intervals) and wanted to perform the following two steps but having hard time trying to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- My earlier program extracted transaction data for each stock then aggregated over five minutes interval, where each 5 minute interval is referenced by a number: 12:00-12:05 = 1 , 12:05-12:10 = 2 ..... etc. Now, if a 5-minute period doesn't have transactions it is skipped. I need to replace missing obs and put zeros, and that is to be performed during a certain period (period 115-170). Note that I have many stocks and dates. I tried the usual PROC EXPAND , method=none but I think the key thing is that my reference number that indicates the 5-minute periods is not datetime variable. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- I need to calculate cumulative return for 5 days for all stocks each stock has a column that describes the day by a number from 1-5 on a rolling basis.&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, 11 Oct 2013 15:51:11 GMT</pubDate>
    <dc:creator>ahmadauh</dc:creator>
    <dc:date>2013-10-11T15:51:11Z</dc:date>
    <item>
      <title>cumulative return for repeated indexing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/cumulative-return-for-repeated-indexing/m-p/110750#M30711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a huge financial dataset (TAQ with 5 minutes intervals) and wanted to perform the following two steps but having hard time trying to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- My earlier program extracted transaction data for each stock then aggregated over five minutes interval, where each 5 minute interval is referenced by a number: 12:00-12:05 = 1 , 12:05-12:10 = 2 ..... etc. Now, if a 5-minute period doesn't have transactions it is skipped. I need to replace missing obs and put zeros, and that is to be performed during a certain period (period 115-170). Note that I have many stocks and dates. I tried the usual PROC EXPAND , method=none but I think the key thing is that my reference number that indicates the 5-minute periods is not datetime variable. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- I need to calculate cumulative return for 5 days for all stocks each stock has a column that describes the day by a number from 1-5 on a rolling basis.&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, 11 Oct 2013 15:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/cumulative-return-for-repeated-indexing/m-p/110750#M30711</guid>
      <dc:creator>ahmadauh</dc:creator>
      <dc:date>2013-10-11T15:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative return for repeated indexing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/cumulative-return-for-repeated-indexing/m-p/110751#M30712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 1, just pretend your variable is a date variable.&amp;nbsp; Dates are integer numbers of days, anyway, so SAS won't know you don't have a date.&amp;nbsp; Or convert the periods to actual time variables - that wouldn't be terribly difficult, anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 16:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/cumulative-return-for-repeated-indexing/m-p/110751#M30712</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-10-11T16:33:29Z</dc:date>
    </item>
  </channel>
</rss>

