<?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: proc rank - month breaks based on customers in month in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596352#M76199</link>
    <description>&lt;P&gt;Thanks PG. I'll give it a go.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 19:10:19 GMT</pubDate>
    <dc:creator>andrewjmdata</dc:creator>
    <dc:date>2019-10-14T19:10:19Z</dc:date>
    <item>
      <title>proc rank - month breaks based on customers in month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596316#M76197</link>
      <description>&lt;P&gt;Hi, I have a table of 100,000 customers. I have the month when they started buying from my client. The range of months is 1-200.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is break that down into 1/3rd's for example out put might be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1st 1/3 (33%) of customers bought in months 1-&amp;gt;12&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd 1/3 (33%) of customers bought in months 13-&amp;gt;124&lt;/P&gt;
&lt;P&gt;3rd 1/3 (33%) of customers bought in months 125-&amp;gt;200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the solution is to use proc rank but can't seem to get month breaks based on volume of customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sense?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 16:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596316#M76197</guid>
      <dc:creator>andrewjmdata</dc:creator>
      <dc:date>2019-10-14T16:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc rank - month breaks based on customers in month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596339#M76198</link>
      <description>&lt;P&gt;Use option groups=3 in the proc ranks statement and variable month in the var statement.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 17:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596339#M76198</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-10-14T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc rank - month breaks based on customers in month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596352#M76199</link>
      <description>&lt;P&gt;Thanks PG. I'll give it a go.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 19:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596352#M76199</guid>
      <dc:creator>andrewjmdata</dc:creator>
      <dc:date>2019-10-14T19:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc rank - month breaks based on customers in month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596393#M76200</link>
      <description>&lt;P&gt;It depends a bit on your data structure &amp;nbsp;- quite a bit - and how your'e defining month. If months are 1 to 12 are the same for each customer for example, or do they relate to when a customer first joined the company.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you may want to use survival analysis instead of just times as that accounts for accounts still open/active more accurately than just just using accounts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/47317"&gt;@andrewjmdata&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I have a table of 100,000 customers. I have the month when they started buying from my client. The range of months is 1-200.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is break that down into 1/3rd's for example out put might be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1st 1/3 (33%) of customers bought in months 1-&amp;gt;12&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd 1/3 (33%) of customers bought in months 13-&amp;gt;124&lt;/P&gt;
&lt;P&gt;3rd 1/3 (33%) of customers bought in months 125-&amp;gt;200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the solution is to use proc rank but can't seem to get month breaks based on volume of customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sense?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-rank-month-breaks-based-on-customers-in-month/m-p/596393#M76200</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-14T23:59:08Z</dc:date>
    </item>
  </channel>
</rss>

