<?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: Modified Poisson adjusted  risk ratio  and confidence interval estimate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818446#M40433</link>
    <description>&lt;P&gt;Great &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This modification works; I initially wrote param=ref, however, param=glm works as you mentioned in one of the&amp;nbsp; previous posts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc genmod data =xyz;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class id&amp;nbsp; x (ref = "5")&amp;nbsp; y (ref = "M")&amp;nbsp; z(ref = "Q1")&amp;nbsp; / param =glm;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model one_dose (event='1') = x y z/ dist = poisson link = log;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repeated subject = id/ type = unstr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lsmeans x y z/ diff exp cl;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea how to assign a reference category, because it does not show results for first category as a reference category.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 19:04:58 GMT</pubDate>
    <dc:creator>yubaraj</dc:creator>
    <dc:date>2022-06-15T19:04:58Z</dc:date>
    <item>
      <title>Modified Poisson adjusted  risk ratio  and confidence interval estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818421#M40422</link>
      <description>&lt;P&gt;I have a binary outcome variable and covariates with multiple categories.&lt;/P&gt;&lt;P&gt;I am trying to estimate adjusted risk ratios and confidence intervals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reviewed previous discussions in SAS&amp;nbsp; forum about this topic&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-get-categorical-variables-RR-estimates-in-PROC-GENMOD/m-p/760775" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-to-get-categorical-variables-RR-estimates-in-PROC-GENMOD/m-p/760775&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/RR-estimates-using-proc-Genmod-for-categorical-variables/m-p/549129#M27406" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/RR-estimates-using-proc-Genmod-for-categorical&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://academic.oup.com/aje/article/162/3/199/171116" target="_blank" rel="noopener"&gt;https://academic.oup.com/aje/article/162/3/199/171116&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/345-2011.pdf" target="_blank" rel="noopener"&gt;345-2011: Using SAS® Procedures FREQ, GENMOD, LOGISTIC, and PHREG to Estimate Adjusted Relative Risks: A Case Study&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but these don't help when I have a covariate with multiple categories because the output it produces are not meaningful for multiple category.&lt;/P&gt;&lt;P&gt;It works well when I use lsmeans option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data =xyz;&lt;BR /&gt;class id&amp;nbsp; x (ref = "5")&amp;nbsp; y (ref = "M")&amp;nbsp; z(ref = "Q1")&amp;nbsp; / param =glm;&lt;BR /&gt;model one_dose (event='1') = x y z/ dist = binomial&amp;nbsp; link = log;&lt;/P&gt;&lt;P&gt;lsmeans x y z / diff exp cl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;I want to use modified Poisson because prevalence of outcome is high. over 50% as a very similar study as mine used modified poisson regression.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.thelancet.com/action/showPdf?pii=S2468-2667%2822%2900037-8" target="_blank" rel="noopener"&gt;https://www.thelancet.com/action/showPdf?pii=S2468-2667%2822%2900037-8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is as follows;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data =xyz;&lt;BR /&gt;class id&amp;nbsp; x (ref = "5")&amp;nbsp; y (ref = "M")&amp;nbsp; z(ref = "Q1")&amp;nbsp; / param =ref;&lt;BR /&gt;model one_dose (event='1') = x y z/ dist = poisson link = log;&lt;BR /&gt;repeated subject = id/ type = unstr;&lt;BR /&gt;Estimate "RR x"&amp;nbsp; x&amp;nbsp; 1/exp;&lt;BR /&gt;Estimate "RR y" y&amp;nbsp; 1/exp;&lt;BR /&gt;Estimate "RR z" z 1/exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;So, basically, my question is how do we write the "estimate" statements when the covariate has multiple categories and how to assign a reference category in a modified Poisson model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Yuba&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 17:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818421#M40422</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2022-06-15T17:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modified Poisson adjusted  risk ratio  and confidence interval estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818442#M40431</link>
      <description>&lt;P&gt;Is there some reason that you feel you can't use the same LSMEANS statement in your second set of code like you did you your first set of code? See the Modified Poisson section of &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818442#M40431</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-06-15T18:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modified Poisson adjusted  risk ratio  and confidence interval estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818446#M40433</link>
      <description>&lt;P&gt;Great &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This modification works; I initially wrote param=ref, however, param=glm works as you mentioned in one of the&amp;nbsp; previous posts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc genmod data =xyz;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class id&amp;nbsp; x (ref = "5")&amp;nbsp; y (ref = "M")&amp;nbsp; z(ref = "Q1")&amp;nbsp; / param =glm;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model one_dose (event='1') = x y z/ dist = poisson link = log;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repeated subject = id/ type = unstr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lsmeans x y z/ diff exp cl;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea how to assign a reference category, because it does not show results for first category as a reference category.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818446#M40433</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2022-06-15T19:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modified Poisson adjusted  risk ratio  and confidence interval estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818469#M40438</link>
      <description>I don't know what you mean - LSMEANS gives an estimate for each level of the specified variable(s) and the DIFF option gives all of the pairwise differences. What and where exactly is the problem with respect to a reference level?</description>
      <pubDate>Wed, 15 Jun 2022 19:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modified-Poisson-adjusted-risk-ratio-and-confidence-interval/m-p/818469#M40438</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-06-15T19:52:08Z</dc:date>
    </item>
  </channel>
</rss>

