<?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: Rate calculation using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621857#M182881</link>
    <description>&lt;P&gt;Look into proc genmod which has Poisson regression capabilities:&amp;nbsp;&lt;A href="https://stats.idre.ucla.edu/sas/output/poisson-regression/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/output/poisson-regression/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2020 04:57:23 GMT</pubDate>
    <dc:creator>unison</dc:creator>
    <dc:date>2020-02-03T04:57:23Z</dc:date>
    <item>
      <title>Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621831#M182866</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the customer arrival rate. A customer arrives in the store in how many minutes. For example, from our data, we may get that a customer arrives at the store in every 7 min.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if we have two columns, one for "minute" and the other for "no of the customer", what would be the SAS code? This is a Poisson distribution. Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Minute&amp;nbsp; "Customer of customers"&lt;/P&gt;&lt;P&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I want to get " In every how many minutes a customer come?". This is the property of Poisson distribution. The above is just an example. The answer could be " a customer comes in every 1.5 min".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 04:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621831#M182866</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-02-03T04:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621845#M182875</link>
      <description>&lt;P&gt;Pleaee supply example data in usable form (data step with datalines), and what you expect to get out of it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 03:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621845#M182875</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-03T03:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621854#M182879</link>
      <description>I have edited the question.</description>
      <pubDate>Mon, 03 Feb 2020 04:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621854#M182879</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-02-03T04:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621857#M182881</link>
      <description>&lt;P&gt;Look into proc genmod which has Poisson regression capabilities:&amp;nbsp;&lt;A href="https://stats.idre.ucla.edu/sas/output/poisson-regression/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/output/poisson-regression/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 04:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621857#M182881</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2020-02-03T04:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621872#M182888</link>
      <description>&lt;P&gt;Based on the link which one would be correct&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;proc genmod data =have;
 model minute = customer / link=log dist=Poisson;
run;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;or the following?&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;proc genmod data =have;
 model customer = minute / link=log dist=Poisson;
run;&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Feb 2020 05:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621872#M182888</guid>
      <dc:creator>abdulla</dc:creator>
      <dc:date>2020-02-03T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621915#M182910</link>
      <description>Doesn't it mean you have 31 customers arrive over the course of an hour? Then a customer would arrive every 3600/31 seconds on average.</description>
      <pubDate>Mon, 03 Feb 2020 12:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621915#M182910</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-03T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rate calculation using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621974#M182918</link>
      <description>It depends a bit on what the data means. How is the first column defined? Is that the number of minutes between customers and you have 2 customers at minute 5 and 6 come in 10 minutes later? If so, you're looking for the mean time between events, which is probably just the following:&lt;BR /&gt;&lt;BR /&gt;proc means data=have mean;&lt;BR /&gt;weight customers;&lt;BR /&gt;var time;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2020 16:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rate-calculation-using-SAS/m-p/621974#M182918</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-03T16:08:39Z</dc:date>
    </item>
  </channel>
</rss>

