<?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 calculate RR with quasi-Poisson distribution using PROC GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831977#M41184</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=stroke EMPIRICAL;
   class group site enroll_order;
   model Score = group baseline_NIHSS baseline_ASPECTS onset_to_randomization / dist=binomia link=log SOLUTION;
   random site/ subject= enroll_order;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the group refers to trt;&lt;/P&gt;
&lt;P&gt;the enroll_order refers to ID of each individuals;&lt;/P&gt;
&lt;P&gt;Also I have change the dist from dist = poisson to dist&amp;nbsp; = binomial;&lt;/P&gt;
&lt;P&gt;How can I get the RR ratio?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 16:07:26 GMT</pubDate>
    <dc:creator>Diels_O</dc:creator>
    <dc:date>2022-09-06T16:07:26Z</dc:date>
    <item>
      <title>How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831934#M41180</link>
      <description>&lt;P&gt;Dear all, I met a problem in the PROC GLIMMIX,&lt;/P&gt;
&lt;P&gt;How can I estimate the RR ratio using PROC GLIMMIX with dist = poisson and link = log?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=stroke EMPIRICAL;
class group enroll_order;
model Score = group / dist=poisson link=log SOLUTION;
random site/ subject= enroll_order;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, when adding the EMPIRICAL, my computer memory was not sufficient,&lt;/P&gt;
&lt;P&gt;I will be apropriate if I can get you help! Sincerely, Chagnwei.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831934#M41180</guid>
      <dc:creator>Diels_O</dc:creator>
      <dc:date>2022-09-06T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831939#M41182</link>
      <description>&lt;P&gt;In this case, you can probably get estimates if you specify 'site' in the CLASS statement.&amp;nbsp; The more I look at this, I really need an explanation of enroll_order and how it is coded. I don't think your RANDOM statement correctly models the design in your data, as I don't see how to include 'enroll_order' as a subject for each site.&amp;nbsp; Without more information, I suspect that there is a different enroll_order for each site, which would mean that the two variables are confounded.&amp;nbsp; Please include more information regarding the data structure, and also include any messages in the log that may be generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831939#M41182</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-09-06T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831977#M41184</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=stroke EMPIRICAL;
   class group site enroll_order;
   model Score = group baseline_NIHSS baseline_ASPECTS onset_to_randomization / dist=binomia link=log SOLUTION;
   random site/ subject= enroll_order;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the group refers to trt;&lt;/P&gt;
&lt;P&gt;the enroll_order refers to ID of each individuals;&lt;/P&gt;
&lt;P&gt;Also I have change the dist from dist = poisson to dist&amp;nbsp; = binomial;&lt;/P&gt;
&lt;P&gt;How can I get the RR ratio?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/831977#M41184</guid>
      <dc:creator>Diels_O</dc:creator>
      <dc:date>2022-09-06T16:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/832090#M41191</link>
      <description>&lt;P&gt;Dear Steve, the enroll_order was not related to the sites;&lt;/P&gt;
&lt;P&gt;beside, the Score was a binary variable&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Diels_O_3-1662541606493.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75040iCDEB2CD69D5709F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Diels_O_3-1662541606493.png" alt="Diels_O_3-1662541606493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;, and the reasult&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=stroke EMPIRICAL;
   class site trt   enroll_order;
   model score = trt / dist=poisson link=log SOLUTION;
   store glim;
run;
proc plm restore = glim;
	lsmeans trt / ilink diff exp cl;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It works.&lt;/P&gt;
&lt;P&gt;But when try to add random effect, it shows insufficient memory&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=stroke EMPIRICAL;
   class site trt   enroll_order;
   model score = trt / dist=poisson link=log SOLUTION;
   random site/subject = enroll_order;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Diels_O_1-1662541484844.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75038i5E9DF6A3B8080D47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Diels_O_1-1662541484844.png" alt="Diels_O_1-1662541484844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Diels_O_2-1662541516970.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75039i57D6245B15085D86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Diels_O_2-1662541516970.png" alt="Diels_O_2-1662541516970.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/832090#M41191</guid>
      <dc:creator>Diels_O</dc:creator>
      <dc:date>2022-09-07T09:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/832489#M41230</link>
      <description>&lt;P&gt;If you apply the %NLmeans macro to the results from using a STORE statement (see this note&amp;nbsp;&lt;A href="https://support.sas.com/kb/62/362.html" target="_self"&gt;https://support.sas.com/kb/62/362.html&lt;/A&gt;&amp;nbsp;), you should get the RR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also of interest is this note&amp;nbsp;&lt;A href="https://support.sas.com/kb/23/003.html" target="_self"&gt;https://support.sas.com/kb/23/003.html&lt;/A&gt;&amp;nbsp;, which includes the Zou et al. method you mentioned earlier in one of these threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/832489#M41230</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-09-09T13:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/832726#M41246</link>
      <description>Many thanks to you! Thank you Steve!</description>
      <pubDate>Sun, 11 Sep 2022 06:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/832726#M41246</guid>
      <dc:creator>Diels_O</dc:creator>
      <dc:date>2022-09-11T06:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/833104#M41260</link>
      <description>&lt;P&gt;I'll make two suggestions, but won't guarantee either will help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, since enroll_order is sequential, and there are 948 subjects, you might make things easier if you remove enroll_order from the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, you have a multilevel design, where enroll_order characterizes the residual error, and site is a random effect.&amp;nbsp; To assist convergence, you might try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=stroke EMPIRICAL;
   class site trt   ;
   model score = trt / dist=poisson link=log SOLUTION;
   random intercept/subject = site;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 12:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/833104#M41260</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-09-13T12:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate RR with quasi-Poisson distribution using PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/833272#M41263</link>
      <description>&lt;P&gt;Thank you again Steve!&lt;/P&gt;
&lt;P&gt;By reading other books, I write the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods trace on;
ods output diffs = out1;
proc glimmix data=stroke;
   class site trt   enroll_order;
   model score = trt/ dist=binomia link=log SOLUTION;
random intercept trt/subject = site;
lsmeans trt/diff CL;
run;

ods trace off;
proc print data = out1;run;

data exp1;
set out1;
rr = exp(estimate);
lowcl = exp(lower);
uppercl = exp(upper);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just one question, is the "random intercept trt/ subject = site" equal to "random intercept/subject = site"? This two run out the same result.&lt;/P&gt;
&lt;P&gt;Sincerely, Diels&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 02:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-RR-with-quasi-Poisson-distribution-using-PROC/m-p/833272#M41263</guid>
      <dc:creator>Diels_O</dc:creator>
      <dc:date>2022-09-14T02:12:49Z</dc:date>
    </item>
  </channel>
</rss>

