<?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 Derive poisson probability values as &amp;quot;grouped by&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Derive-poisson-probability-values-as-quot-grouped-by-quot/m-p/853998#M337543</link>
    <description>&lt;P&gt;What I'm trying to do is derive the probability of values on the basis of a Poisson function, but by variables in long form, such as would be the group by function in proc sql.&amp;nbsp; The data step has the pdf() function, which can return the Poisson probabilities, but has no group by function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm aware it's possible to do a 'group by' on operators using first. and last. in data step, but surely this wouldn't work for a function like pdf().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There may be procedures that can do this, but I'm unaware of what they are.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any recommendations?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 16:14:00 GMT</pubDate>
    <dc:creator>awesome_opossum</dc:creator>
    <dc:date>2023-01-16T16:14:00Z</dc:date>
    <item>
      <title>Derive poisson probability values as "grouped by"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Derive-poisson-probability-values-as-quot-grouped-by-quot/m-p/853998#M337543</link>
      <description>&lt;P&gt;What I'm trying to do is derive the probability of values on the basis of a Poisson function, but by variables in long form, such as would be the group by function in proc sql.&amp;nbsp; The data step has the pdf() function, which can return the Poisson probabilities, but has no group by function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm aware it's possible to do a 'group by' on operators using first. and last. in data step, but surely this wouldn't work for a function like pdf().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There may be procedures that can do this, but I'm unaware of what they are.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any recommendations?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 16:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Derive-poisson-probability-values-as-quot-grouped-by-quot/m-p/853998#M337543</guid>
      <dc:creator>awesome_opossum</dc:creator>
      <dc:date>2023-01-16T16:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Derive poisson probability values as "grouped by"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Derive-poisson-probability-values-as-quot-grouped-by-quot/m-p/853999#M337544</link>
      <description>PDF() works on a row basis, uses only data on that row, not on a column basis so it may not be doing what you want anyways. &lt;BR /&gt;&lt;BR /&gt;Do you have it working for one group? How to generate your poisson probability that's been tested?&lt;BR /&gt;&lt;BR /&gt;If the pdf() function does work, then you can use it in the data step without the group by. &lt;BR /&gt;&lt;BR /&gt;Providing some example data may help.</description>
      <pubDate>Mon, 16 Jan 2023 16:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Derive-poisson-probability-values-as-quot-grouped-by-quot/m-p/853999#M337544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-16T16:18:26Z</dc:date>
    </item>
  </channel>
</rss>

