<?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 can I get relative risks for multilevel categorical exposure variable? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784382#M38506</link>
    <description>&lt;P&gt;The log-linked binomial model is often a problem to fit since the log link doesn't not ensure that predicted values are valid means (between 0 and 1 for the binomial distribution). It is better to a regular logistic model and then use the NLMEANS macro as illustrated in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 20:22:39 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2021-12-06T20:22:39Z</dc:date>
    <item>
      <title>How can I get relative risks for multilevel categorical exposure variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784136#M38503</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Say I have a dataset on penguins, some of which are red, some of which are blue, some green. I reduce the dataset to only the blue penguins, as they are the penguins of interest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of the penguins which are blue, some proceed to choose to have baby penguins, some do not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These blue penguins each fall into 1 of 4 exposure groups indicated by the exposure_group variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to model the binary outcome, babies, which is an indicator (1= babies, 0= not). Additionally, my model should contain the continuous covariates age and height, and a categorical covariate, sex.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use a log binomial model:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc genmod data=blue_penguins&amp;nbsp;descending;
class exposure_group(ref=1) sex(ref=1);

model&amp;nbsp; babies= exposure_group sex height age / DIST=bin link=log;&amp;nbsp;

estimate ???

run;&lt;/PRE&gt;
&lt;P class="p4"&gt;I need to achieve the relative risk of each of&amp;nbsp; the exposure groups vs the reference exposure group to proceed to have babies, adjusted for the covariates.&amp;nbsp;&lt;/P&gt;
&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p4"&gt;How can I do this programmatically?&amp;nbsp;&lt;/P&gt;
&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p4"&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 03:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784136#M38503</guid>
      <dc:creator>awardell</dc:creator>
      <dc:date>2021-12-05T03:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get relative risks for multilevel categorical exposure variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784158#M38504</link>
      <description>You can get relative risk  by PROC FREQ.&lt;BR /&gt;&lt;BR /&gt;proc freq data=have;&lt;BR /&gt;table a*b/relrisk ;&lt;BR /&gt;run;</description>
      <pubDate>Sun, 05 Dec 2021 10:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784158#M38504</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-12-05T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get relative risks for multilevel categorical exposure variable?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784382#M38506</link>
      <description>&lt;P&gt;The log-linked binomial model is often a problem to fit since the log link doesn't not ensure that predicted values are valid means (between 0 and 1 for the binomial distribution). It is better to a regular logistic model and then use the NLMEANS macro as illustrated in &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 20:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-relative-risks-for-multilevel-categorical-exposure/m-p/784382#M38506</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-12-06T20:22:39Z</dc:date>
    </item>
  </channel>
</rss>

