<?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: Multiple membership random models with Proc Bglimm in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/873373#M43207</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265210"&gt;@Lorant&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;: how do pass that design matrix from GLIMMIX to BGLIMM what is the statement in BGLIMM ?&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is unfortunately no "indesign=" - option (like there's an "outdesign=" - option). That's a pity. &lt;BR /&gt;But below I give an example (2 times PROC GLIMMIX admittedly).&lt;BR /&gt;It will not be as simple for every model. But definitely possible!&lt;BR /&gt;( Not that the below example is very straightforward.&amp;nbsp;I had to do quite a bit of searching.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/STAT® 15.3 User's Guide&lt;/P&gt;
&lt;P&gt;The GLIMMIX Procedure&lt;BR /&gt;Example 52.16 Diallel Experiment with Multimember Random Effects&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statug/15.3/statug_glimmix_examples21.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/statug/15.3/statug_glimmix_examples21.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Complete code for this example :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statug/15.3/statug_code_gmxex16.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/statug/15.3/statug_code_gmxex16.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here a PROC GLIMMIX on the design matrix that is resulting in the same model :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=diallel outdesign=mat;
   class block sym p m;
   effect line = mm(p m);
   model  time = block;
   random line sym p m p*m;
run;
 
proc print data=mat;
run;
 
proc glimmix data=mat;
class block;
   model  time = block;
   random _z1-_z8 / type=toep(1);
   random _z9 - _z36 / type=toep(1);
   random _z37-_z44 / type=toep(1);
   random _z45 - _z52 / type=toep(1);
   random _z53-_z108 / type=toep(1);
run;
 
*** or if the fixed effects have to be from the design matrix, then use the following program;
proc glimmix data=mat;
   model  time = _x2;
   random _z1-_z8 / type=toep(1);
   random _z9 - _z36 / type=toep(1);
   random _z37-_z44 / type=toep(1);
   random _z45 - _z52 / type=toep(1);
   random _z53-_z108 / type=toep(1);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 14:06:35 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-05-02T14:06:35Z</dc:date>
    <item>
      <title>Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/862248#M42623</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to apply a multilevel multiple membership models to a binary outcome. Because Proc Glimmix is not very efficient for large number of random effects, I shifted to BGLIMM. Yet I wonder if that procedure can incorporate multiple membership ?&lt;BR /&gt;&lt;BR /&gt;In practice I have a multiple networks dataset with 10,000 egos nested in 50 networks and each ego might have up to 5 different alters. I want avoid meta-analysing the results for different networks. Is BGLIMM tunable to that need ?&lt;BR /&gt;&lt;BR /&gt;Thanks for the advice&lt;BR /&gt;&lt;BR /&gt;Vincent&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Mar 2023 03:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/862248#M42623</guid>
      <dc:creator>Lorant</dc:creator>
      <dc:date>2023-03-04T03:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/862365#M42637</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting question.&lt;/P&gt;
&lt;P&gt;You can indeed use&lt;BR /&gt;PROC GLIMMIX for fitting multilevel multiple membership models to hierarchical binary data (binary outcomes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Model specifications in PROC BGLIMM are mostly identical to those in PROC MIXED and PROC GLIMMIX.&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_bglimm_overview03.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_bglimm_overview03.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Do you get errors with your model specification in BGLIMM?&lt;/P&gt;
&lt;P&gt;I would think BGLIMM can handle this.&lt;BR /&gt;&lt;BR /&gt;I have forwarded your question internally to a colleague that should know the answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 17:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/862365#M42637</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-03-05T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/862617#M42652</link>
      <description>&lt;P&gt;Dear professor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your question :&amp;nbsp;&lt;SPAN&gt;Yet I wonder if that procedure (BGLIMM) can incorporate multiple membership ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the answer from my colleague :&lt;/P&gt;
&lt;P&gt;Yeah, if multiple membership models mean that the random effects don’t need to be nested (nested means student within classroom within school within district), then BGLIMM supports this type of model. Student can be the cluster for one RANDOM statement, and topic (English, math, science) can be for another, and the two subject= variables do not need to be nested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 06:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/862617#M42652</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-03-07T06:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863239#M42680</link>
      <description>Dear Koen,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply but this solution allows to model multiple classifications but not multiple memberships : an ego may belong to two different groups of the same classification variable. Ego may be member of, say, triad 1, and of triad 2, etc. To take your example, a student may belong to two different classes ( for whatever admin reasons).&lt;BR /&gt;In addition some egos may have juste one membership, whereas others may have many more: the pattern of memberships may be very different from one ego to another.&lt;BR /&gt;&lt;BR /&gt;In GLIMMIX these complexities can be handled with the «&amp;nbsp; EFFECT&amp;nbsp;» statement. How to do the same in PROC BGLIMM ?&lt;BR /&gt;&lt;BR /&gt;Thanks for the guidance.&lt;BR /&gt;&lt;BR /&gt;Vincent</description>
      <pubDate>Thu, 09 Mar 2023 17:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863239#M42680</guid>
      <dc:creator>Lorant</dc:creator>
      <dc:date>2023-03-09T17:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863242#M42681</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand , but I don't have an immediate answer ready for this.&lt;BR /&gt;I will reach out again to my colleague in R&amp;amp;D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stay tuned,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Mar 2023 18:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863242#M42681</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-03-09T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863268#M42684</link>
      <description>&lt;P&gt;How would a Bayesian approach assist you (since that is what BGLIMM is for)? At this point, I do not believe BGLIMM (or PROC MCMC) supports the EFFECT statement to generate a multimember design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 19:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863268#M42684</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-03-09T19:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863312#M42688</link>
      <description>&lt;P&gt;Thank you Steve.&amp;nbsp; As Glimmix is unable to deal with thousands of random effects (often the case with social network datasets), I shifted to BGLIMM but indeed is does not handle multiple memberships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 22:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863312#M42688</guid>
      <dc:creator>Lorant</dc:creator>
      <dc:date>2023-03-09T22:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863501#M42694</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265210"&gt;@Lorant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Subject:&lt;/STRONG&gt;&amp;nbsp;Multiple membership random models with Proc BGLIMM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workaround is to use the GLIMMIX procedure, which produces the design matrix (use the EFFECT statement for constructed effects), and then use the outputted design matrix in BGLIMM.&lt;/P&gt;
&lt;P&gt;It’s the OUTDESIGN= option you want to use in GLIMMIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ciao,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 17:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/863501#M42694</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-03-10T17:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/867432#M42883</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265210"&gt;@Lorant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;The workaround is to use the GLIMMIX procedure, which produces the design matrix (use the EFFECT statement for constructed effects), and then use the outputted design matrix in BGLIMM.
&lt;P&gt;It’s the OUTDESIGN= option you want to use in GLIMMIX.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you have time to try out the above suggestion?&lt;/P&gt;
&lt;P&gt;Do you have any follow-up questions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/867432#M42883</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-03-31T12:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/868358#M42930</link>
      <description>Dear Koen,&lt;BR /&gt;&lt;BR /&gt;Sorry for the delay in answering you. I hadn’t had time to check your solution yet but I will. I have however a concern: how do pass that design matrix from GLIMMIX to BGLIMM what is the statement in BGLIMM ?&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Apr 2023 21:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/868358#M42930</guid>
      <dc:creator>Lorant</dc:creator>
      <dc:date>2023-04-05T21:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple membership random models with Proc Bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/873373#M43207</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265210"&gt;@Lorant&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;: how do pass that design matrix from GLIMMIX to BGLIMM what is the statement in BGLIMM ?&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is unfortunately no "indesign=" - option (like there's an "outdesign=" - option). That's a pity. &lt;BR /&gt;But below I give an example (2 times PROC GLIMMIX admittedly).&lt;BR /&gt;It will not be as simple for every model. But definitely possible!&lt;BR /&gt;( Not that the below example is very straightforward.&amp;nbsp;I had to do quite a bit of searching.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/STAT® 15.3 User's Guide&lt;/P&gt;
&lt;P&gt;The GLIMMIX Procedure&lt;BR /&gt;Example 52.16 Diallel Experiment with Multimember Random Effects&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statug/15.3/statug_glimmix_examples21.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/statug/15.3/statug_glimmix_examples21.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Complete code for this example :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statug/15.3/statug_code_gmxex16.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/statug/15.3/statug_code_gmxex16.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here a PROC GLIMMIX on the design matrix that is resulting in the same model :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=diallel outdesign=mat;
   class block sym p m;
   effect line = mm(p m);
   model  time = block;
   random line sym p m p*m;
run;
 
proc print data=mat;
run;
 
proc glimmix data=mat;
class block;
   model  time = block;
   random _z1-_z8 / type=toep(1);
   random _z9 - _z36 / type=toep(1);
   random _z37-_z44 / type=toep(1);
   random _z45 - _z52 / type=toep(1);
   random _z53-_z108 / type=toep(1);
run;
 
*** or if the fixed effects have to be from the design matrix, then use the following program;
proc glimmix data=mat;
   model  time = _x2;
   random _z1-_z8 / type=toep(1);
   random _z9 - _z36 / type=toep(1);
   random _z37-_z44 / type=toep(1);
   random _z45 - _z52 / type=toep(1);
   random _z53-_z108 / type=toep(1);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 14:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multiple-membership-random-models-with-Proc-Bglimm/m-p/873373#M43207</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-05-02T14:06:35Z</dc:date>
    </item>
  </channel>
</rss>

