<?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 Binomial clustered data-genmode in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754434#M36716</link>
    <description>&lt;P&gt;Hi everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with hierarchically clustered data: repeated measures per patient within repeated hospitals. I am trying to adjust for both levels in my model, plus I would like to estimate Relative Risks instead of odds ratios .I used the following genmode code, would the repeated statement adjust for clustering in the hospital and subject?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;genmod&lt;/STRONG&gt; data= data;&lt;/P&gt;&lt;P&gt;class&amp;nbsp; hospital gender(ref="2")&amp;nbsp;&amp;nbsp; outcome(ref="1")&amp;nbsp; ID;&lt;/P&gt;&lt;P&gt;model outcome= gender /dist=binomial link=log;&lt;/P&gt;&lt;P&gt;repeated subject=hospital(ID);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 19:27:40 GMT</pubDate>
    <dc:creator>nataliavanessa0</dc:creator>
    <dc:date>2021-07-15T19:27:40Z</dc:date>
    <item>
      <title>Binomial clustered data-genmode</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754434#M36716</link>
      <description>&lt;P&gt;Hi everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with hierarchically clustered data: repeated measures per patient within repeated hospitals. I am trying to adjust for both levels in my model, plus I would like to estimate Relative Risks instead of odds ratios .I used the following genmode code, would the repeated statement adjust for clustering in the hospital and subject?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;genmod&lt;/STRONG&gt; data= data;&lt;/P&gt;&lt;P&gt;class&amp;nbsp; hospital gender(ref="2")&amp;nbsp;&amp;nbsp; outcome(ref="1")&amp;nbsp; ID;&lt;/P&gt;&lt;P&gt;model outcome= gender /dist=binomial link=log;&lt;/P&gt;&lt;P&gt;repeated subject=hospital(ID);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754434#M36716</guid>
      <dc:creator>nataliavanessa0</dc:creator>
      <dc:date>2021-07-15T19:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Binomial clustered data-genmode</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754598#M36729</link>
      <description>&lt;P&gt;Try -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data= data;
class  hospital gender(ref="2")   outcome(ref="1")  ID;
model outcome= gender /dist=binomial link=log;
repeated subject=hospital / logor=nest1 subcluster=ID;
estimate 'M v F' gender 1 -1 / exp; /*if male=0 and female=1 in your data*/
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The repeated statement above fits an Alternative Logistic Regression model.&lt;/P&gt;&lt;P&gt;The exp option in the estimate statement will transform the beta estimate to a RR&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754598#M36729</guid>
      <dc:creator>anguye11</dc:creator>
      <dc:date>2021-07-16T14:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Binomial clustered data-genmode</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754867#M36749</link>
      <description>&lt;P&gt;The REPEATED statement in PROC GENMOD fits the GEE model. It is not a hierarchical model - which can be fit using the RANDOM statement in PROC GLIMMIX. The GEE method is robust to misspecifying the correlation structure, so the results can still be valid in your situation. The unstructured correlation matrix (TYPE=UN) can accommodate any correlations among the repeated measures since it imposes no structure on them, but it can cause fitting problems because it requires estimating all of the correlations. Similarly, using the log link with the binomial distribution can cause fitting problems since it doesn't ensure that predicted values are valid (in the 0 to 1 range) for the binomial distribution. So, you could follow the method at the beginning of &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt;, but use either PROC GENMOD (with REPEATED) or PROC GLIMMIX (with RANDOM) instead of PROC LOGISTIC to fit the usual logit-linked binomial model (logistic model), and then follow with the NLMeans macro to estimate the relative risk. The log-linked binomial model is covered later in the note and discusses the fitting problems that I mention above.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 15:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Binomial-clustered-data-genmode/m-p/754867#M36749</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-07-18T15:57:30Z</dc:date>
    </item>
  </channel>
</rss>

