<?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: Log Binomial Regression - How to compare multiple levels of a predictor in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745908#M233919</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;That said, LSMEANS will give me the RR as well? Thanks again!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;While I do have plenty of other experience with PROC GENMOD, but I have never done a log binomial regression, I give you this brilliant answer: try it and see.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 20:22:16 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-06-04T20:22:16Z</dc:date>
    <item>
      <title>Log Binomial Regression - How to compare multiple levels of a predictor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745818#M233873</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a log binomial regression to predict relative risk of an outcome occurring (let's say Y, 0=absent, 1=present) based on a predictor (X with nominal categories 1, 2, 3, and 4). Most coding suggestions show how to do log binomial regression with a binomial predictor (not multicategorical predictor), but I want to compare RR of classes 2-4 to reference class 1. I tried the code below, but the mean estimates in the output don't entirely make sense based on my earlier ANVOA and odds ratio results. Any suggestsions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TITLE 'UNADJUSTED X predicting Y';&lt;BR /&gt;proc genmod data = dataname;&lt;BR /&gt;CLASS X (ref="1" param=ref);&lt;BR /&gt;MODEL Y (event="1")= X/ dist = binomial link = log;&lt;BR /&gt;estimate 'Class 2' X 1/ exp;&lt;/P&gt;&lt;P&gt;estimate 'Class 3' X 2/ exp;&lt;/P&gt;&lt;P&gt;estimate 'Class 4' X 3/ exp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745818#M233873</guid>
      <dc:creator>sclaire</dc:creator>
      <dc:date>2021-06-04T15:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Log Binomial Regression - How to compare multiple levels of a predictor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745827#M233879</link>
      <description>&lt;P&gt;I don't know what your concerns are about the mean estimates, you haven't given any specifics or details, other than they don't match the ANOVA (and I would NOT expect them to match).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In PROC GENMOD, you don't need ESTIMATE statements to compute means, the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_genmod_syntax20.htm" target="_self"&gt;LSMEANS&lt;/A&gt; statement gets the job done, and produces the proper error estimates.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 16:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745827#M233879</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-04T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Log Binomial Regression - How to compare multiple levels of a predictor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745879#M233910</link>
      <description>&lt;P&gt;Thanks for the response! I am wondering if the end of my code (the estimate lines) will return what I am looking for, the RR of classes 2-4 compared to class 1 as the reference group. The reason I was unsure was because these results are not in the same direction as the ANOVA + OR. Class 1 has comparatively low % of the event occurring in the raw data yet the RR do not come out that way (even when I specify "descending").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, LSMEANS will give me the RR as well? Thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 18:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745879#M233910</guid>
      <dc:creator>sclaire</dc:creator>
      <dc:date>2021-06-04T18:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Log Binomial Regression - How to compare multiple levels of a predictor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745881#M233911</link>
      <description>&lt;P&gt;That depends. What does RR stand for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMEANS will allow you to compare the means of the different groups.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 18:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745881#M233911</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-04T18:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Log Binomial Regression - How to compare multiple levels of a predictor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745882#M233912</link>
      <description>&lt;P&gt;Risk ratio (RR) instead of odds ratio (OR)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 18:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745882#M233912</guid>
      <dc:creator>sclaire</dc:creator>
      <dc:date>2021-06-04T18:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Log Binomial Regression - How to compare multiple levels of a predictor</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745908#M233919</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;That said, LSMEANS will give me the RR as well? Thanks again!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;While I do have plenty of other experience with PROC GENMOD, but I have never done a log binomial regression, I give you this brilliant answer: try it and see.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 20:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Binomial-Regression-How-to-compare-multiple-levels-of-a/m-p/745908#M233919</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-04T20:22:16Z</dc:date>
    </item>
  </channel>
</rss>

