<?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: Fitting a random effect model for overdispersed grouped binary data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993110#M49536</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Dear StatDave&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much. It works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rgds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;S_pera&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2026 22:25:48 GMT</pubDate>
    <dc:creator>S_pera</dc:creator>
    <dc:date>2026-09-04T22:25:48Z</dc:date>
    <item>
      <title>Fitting a random effect model for overdispersed grouped binary data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993028#M49527</link>
      <description>&lt;P&gt;I need to fit a random effect model for the following SAS dataset. (I have already fitted the standard linear logistic full model.) Now how can I fit the linear logistic model with random effect?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data exa;&lt;/P&gt;&lt;P&gt;input vty ext y n;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1 10 39&lt;/P&gt;&lt;P&gt;1 1 22 62&lt;/P&gt;&lt;P&gt;1 1 23 81&lt;/P&gt;&lt;P&gt;1 1 26 51&lt;/P&gt;&lt;P&gt;1 1 17 39&lt;/P&gt;&lt;P&gt;1 2 5 6&lt;/P&gt;&lt;P&gt;1 2 53 74&lt;/P&gt;&lt;P&gt;1 2 55 72&lt;/P&gt;&lt;P&gt;1 2 32 51&lt;/P&gt;&lt;P&gt;1 2 46 79&lt;/P&gt;&lt;P&gt;1 2 10 13&lt;/P&gt;&lt;P&gt;2 1 8 16&lt;/P&gt;&lt;P&gt;2 1 10 30&lt;/P&gt;&lt;P&gt;2 1 8 28&lt;/P&gt;&lt;P&gt;2 1 25 45&lt;/P&gt;&lt;P&gt;2 1 0 4&lt;/P&gt;&lt;P&gt;2 2 3 12&lt;/P&gt;&lt;P&gt;2 2 22 41&lt;/P&gt;&lt;P&gt;2 2 15 30&lt;/P&gt;&lt;P&gt;2 2 32 51&lt;/P&gt;&lt;P&gt;2 2 3 7&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc logistic;&lt;/P&gt;&lt;P&gt;class vty ext/param=reference ref=first;&lt;/P&gt;&lt;P&gt;model y/n=vty ext vty*ext /scale=none ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2026 12:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993028#M49527</guid>
      <dc:creator>S_pera</dc:creator>
      <dc:date>2026-09-03T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a random effect model for overdispersed grouped binary data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993032#M49528</link>
      <description>&lt;P&gt;You probably will want to consider using the binomial cluster model or the beta binomial model, both of which are mentioned in the Overdispersion section of &lt;A href="http://support.sas.com/kb/22630" target="_self"&gt;this note&lt;/A&gt;. As noted there, these models are discussed and illustrated in the example titled "Modeling Mixing Probabilities" in the PROC FMM documentation.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2026 13:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993032#M49528</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-09-03T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a random effect model for overdispersed grouped binary data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993038#M49529</link>
      <description>Dear StatDave&lt;BR /&gt;&lt;BR /&gt;I am just interested in fitting the random effects model. Thank you StatDave.&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;&lt;BR /&gt;S_pera</description>
      <pubDate>Thu, 03 Sep 2026 15:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993038#M49529</guid>
      <dc:creator>S_pera</dc:creator>
      <dc:date>2026-09-03T15:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a random effect model for overdispersed grouped binary data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993047#M49530</link>
      <description>&lt;P&gt;Then you need to add an observation identifier in the data by including this in the DATA step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id=_n_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can then fit the random effects model in GLIMMIX as follows which also fits the beta binomial, binomial cluster, and GEE models - all of which are ways to deal with the overdispersion. The cumulated results in the PREDS data set show that they all produce similar predicted probabilities.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gee data=exa;
   class vty ext id;
   model y/n = vty ext vty*ext / dist=bin;
   repeated subject=id;
   output out=preds pred=pgee;
run;
proc glimmix data=preds;
   class vty ext id;
   model y/n = vty ext vty*ext / dist=bin s;
   random intercept / subject=id;
   output out=preds pred(ilink)=pglim;
run;
proc fmm data=preds;
   class vty ext;
   model y/n =  / dist=binomcluster;
   probmodel vty ext vty*ext;
   output out=preds pred(overall)=pbclus;
run;
proc fmm data=preds;
   class vty ext;
   model y/n = vty ext vty*ext / dist=betabin;
   output out=preds pred(overall)=pbbin;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Sep 2026 15:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993047#M49530</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-09-03T15:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a random effect model for overdispersed grouped binary data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993110#M49536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear StatDave&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much. It works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rgds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;S_pera&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 22:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Fitting-a-random-effect-model-for-overdispersed-grouped-binary/m-p/993110#M49536</guid>
      <dc:creator>S_pera</dc:creator>
      <dc:date>2026-09-04T22:25:48Z</dc:date>
    </item>
  </channel>
</rss>

