<?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: How to get Risk ratio from a Poisson model with count data &amp;amp; interaction terms in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/691378#M33349</link>
    <description>Thank you!</description>
    <pubDate>Tue, 13 Oct 2020 19:59:38 GMT</pubDate>
    <dc:creator>JME1</dc:creator>
    <dc:date>2020-10-13T19:59:38Z</dc:date>
    <item>
      <title>How to get Risk ratio from a Poisson model with count data &amp; interaction terms</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/686063#M33178</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having a bit of trouble getting RR from a Poisson model using count data and with interaction terms. I have data like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data x;&lt;/P&gt;
&lt;P&gt;count&amp;nbsp; &amp;nbsp;time&amp;nbsp; &amp;nbsp; &amp;nbsp;intervention&amp;nbsp; &amp;nbsp;status&amp;nbsp; totalcount;&lt;/P&gt;
&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 21&lt;/P&gt;
&lt;P&gt;34&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/P&gt;
&lt;P&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;
&lt;P&gt;15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;
&lt;P&gt;16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;*Note:&amp;nbsp;Count is number of patients hospitalized, and total count is total patients.*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm interested in knowing how the intervention affected the count, and also how it differed by status so I ran this model.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=x;
class status intervention/param=glm;
model count= time intervention status status*intervention intervention*time/dist=poisson offset=log_tc;
run;

*log_tc*=&amp;nbsp;I&amp;nbsp;took&amp;nbsp;the&amp;nbsp;log&amp;nbsp;of&amp;nbsp;the&amp;nbsp;total&amp;nbsp;count*&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the coefficients from this output but I want to be able to interpret my output in terms of risk ratios/rate ratios.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, using the estimate statements/LSMeans does not exactly work in this situation and I'm not sure what to do to get it since I have interaction terms in my model.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If I had just main effect terms in the model, I would take the exponents of the coefficients, but with interaction terms how would I get the estimates? and interpret all of them, including the interactions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance I want to know how the count varied by status (=1) where intervention=1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate any guidance on this!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 14:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/686063#M33178</guid>
      <dc:creator>JME1</dc:creator>
      <dc:date>2020-09-23T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Risk ratio from a Poisson model with count data &amp; interaction terms</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/688396#M33179</link>
      <description>&lt;P&gt;Moved to STATS forum.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 22:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/688396#M33179</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-01T22:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Risk ratio from a Poisson model with count data &amp; interaction terms</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/688527#M33191</link>
      <description>&lt;P&gt;Your response is apparently binary and then aggregated, resulting in a count of events out of a total count of trials. As such you can simply fit a logistic model using "events/trials" syntax for specifying the observed counts. You can then obtain the risk ratio (relative risk) using the NLMEANS macro as discussed and illustrated in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/688527#M33191</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-10-02T15:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Risk ratio from a Poisson model with count data &amp; interaction terms</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/691378#M33349</link>
      <description>Thank you!</description>
      <pubDate>Tue, 13 Oct 2020 19:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-Risk-ratio-from-a-Poisson-model-with-count-data-amp/m-p/691378#M33349</guid>
      <dc:creator>JME1</dc:creator>
      <dc:date>2020-10-13T19:59:38Z</dc:date>
    </item>
  </channel>
</rss>

