<?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 MULTIMEMBER as RANDOM effect in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/MULTIMEMBER-as-RANDOM-effect/m-p/523783#M26554</link>
    <description>&lt;P&gt;I am running a binomial GLIMMIX model with a binary outcome &lt;U&gt;Mortality&lt;/U&gt; (sample event rate almost 50%) and two multinomial random effects.&amp;nbsp; The rows are patients with a sample of just over 12K.&amp;nbsp; The first random effect is hospitals, sample just over 450.&amp;nbsp; The second effect--the one that gives me trouble--is hospital groups.&amp;nbsp; Most of the groups are non-overlapping states--close to 50 of those.&amp;nbsp; But I do have four hospital groupings that are not states and I do have hospitals that fall into multiple groups--MULTIMEMBER.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the first model that converges in 1.6 seconds:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix method=laplace;
    class HID;
    model Mortality = / dist=binomial link=logit ddfm=bw;
    random HID;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second model, adding a fixed MULTIMEMBER effect converges in 8.4 seconds--C1 is a variable with &lt;U&gt;States&lt;/U&gt; as levels; C2 is mostly blank and only has four levels designating &lt;U&gt;non-state hospital groupings&lt;/U&gt;--NOEFFECT option sets indicators for blank rows to zero:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix method=laplace;
    class HID C1 C2 ;
    effect Collabs = mm ( C1 C2 / noeffect );
    model Mortality = Collabs / dist=binomial link=logit ddfm=bw;
    random HID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suppose I could live with non-state collaboratives as fixed effects but, by design, they are random effects I would really like empirical Bayesian shrinkage applied to those estimates the same way it is applied to hospital estimates.&amp;nbsp; Unfortunately, when I put COLLABS in the random statement, the computer seems to go unresponsive:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix method=laplace;
    class HID C1 C2 ;
    effect Collabs = mm ( C1 C2 / noeffect );
    model Mortality = / dist=binomial link=logit ddfm=bw;
    random Collabs HID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;CPU usage fluctuates between 5% and 10%, memory usage is flat at roughly 40% of my RAM capacity, disk I/O spikes up and down with no sustained use of the virtual memory evident.&amp;nbsp; I thought it may be a matter of time so I let this run for 48 hours using SAS Enterprise Guide (SEG).&amp;nbsp; Resource monitor shows that SEG uses more computer resources than SAS 9.4 process.&amp;nbsp; After several minutes my SEG goes unresponsive--I cannot open new programs or do anything with the program.&amp;nbsp; Now, I've seen that happen with other resource-intensive models: SEG goes unresponsive but it comes back after the model is finished.&amp;nbsp; I've had this go on for hours at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the MULTIMEMBER effect is specified correctly because the model converges with MM as a FIXED effect.&amp;nbsp; SAS documentation for using MULTIMEMBER effect is rudimentary but, perhaps, that is appropriate if all it does is create 0/1 indicator variables for each level of C1/C2 combination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any insights or suggestions?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2018 18:05:04 GMT</pubDate>
    <dc:creator>Haris</dc:creator>
    <dc:date>2018-12-28T18:05:04Z</dc:date>
    <item>
      <title>MULTIMEMBER as RANDOM effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MULTIMEMBER-as-RANDOM-effect/m-p/523783#M26554</link>
      <description>&lt;P&gt;I am running a binomial GLIMMIX model with a binary outcome &lt;U&gt;Mortality&lt;/U&gt; (sample event rate almost 50%) and two multinomial random effects.&amp;nbsp; The rows are patients with a sample of just over 12K.&amp;nbsp; The first random effect is hospitals, sample just over 450.&amp;nbsp; The second effect--the one that gives me trouble--is hospital groups.&amp;nbsp; Most of the groups are non-overlapping states--close to 50 of those.&amp;nbsp; But I do have four hospital groupings that are not states and I do have hospitals that fall into multiple groups--MULTIMEMBER.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the first model that converges in 1.6 seconds:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix method=laplace;
    class HID;
    model Mortality = / dist=binomial link=logit ddfm=bw;
    random HID;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second model, adding a fixed MULTIMEMBER effect converges in 8.4 seconds--C1 is a variable with &lt;U&gt;States&lt;/U&gt; as levels; C2 is mostly blank and only has four levels designating &lt;U&gt;non-state hospital groupings&lt;/U&gt;--NOEFFECT option sets indicators for blank rows to zero:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix method=laplace;
    class HID C1 C2 ;
    effect Collabs = mm ( C1 C2 / noeffect );
    model Mortality = Collabs / dist=binomial link=logit ddfm=bw;
    random HID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suppose I could live with non-state collaboratives as fixed effects but, by design, they are random effects I would really like empirical Bayesian shrinkage applied to those estimates the same way it is applied to hospital estimates.&amp;nbsp; Unfortunately, when I put COLLABS in the random statement, the computer seems to go unresponsive:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix method=laplace;
    class HID C1 C2 ;
    effect Collabs = mm ( C1 C2 / noeffect );
    model Mortality = / dist=binomial link=logit ddfm=bw;
    random Collabs HID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;CPU usage fluctuates between 5% and 10%, memory usage is flat at roughly 40% of my RAM capacity, disk I/O spikes up and down with no sustained use of the virtual memory evident.&amp;nbsp; I thought it may be a matter of time so I let this run for 48 hours using SAS Enterprise Guide (SEG).&amp;nbsp; Resource monitor shows that SEG uses more computer resources than SAS 9.4 process.&amp;nbsp; After several minutes my SEG goes unresponsive--I cannot open new programs or do anything with the program.&amp;nbsp; Now, I've seen that happen with other resource-intensive models: SEG goes unresponsive but it comes back after the model is finished.&amp;nbsp; I've had this go on for hours at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the MULTIMEMBER effect is specified correctly because the model converges with MM as a FIXED effect.&amp;nbsp; SAS documentation for using MULTIMEMBER effect is rudimentary but, perhaps, that is appropriate if all it does is create 0/1 indicator variables for each level of C1/C2 combination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any insights or suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 18:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MULTIMEMBER-as-RANDOM-effect/m-p/523783#M26554</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-12-28T18:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: MULTIMEMBER as RANDOM effect</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/MULTIMEMBER-as-RANDOM-effect/m-p/523785#M26555</link>
      <description>&lt;P&gt;Here's what the C1 C2 coding looks like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data DS;
  if state='State1' then do; C1='State1'; C2='';        end; else
  if state='State2' AND Collaborative='Collab1';
                    then do; C1='State2'; C2='Collab1'; end; else
  if state='State2' AND Collaborative='';
                    then do; C1='State2'; C2='';        end; else
  if state='' AND Collaborative='Collab2';
                    then do; C1=''; C2='Collab2';       end;

ETC.

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't think this is particularly relevant but, just in case, this summarizes all three possible permutations of C1 and C2:&lt;/P&gt;
&lt;P&gt;1. Hospital is only in a &lt;U&gt;State&lt;/U&gt; group ==&amp;gt; C2 is blank&lt;/P&gt;
&lt;P&gt;2. Hospital is in a &lt;U&gt;State&lt;/U&gt; and a &lt;U&gt;Collaborative&lt;/U&gt; group&amp;nbsp; ==&amp;gt; C1 and C2 have one of the valid levels for the nominal variable (relatively rare)&lt;/P&gt;
&lt;P&gt;3. Hospital is only in a &lt;U&gt;Collaborative&lt;/U&gt; group ==&amp;gt; C1 is blank (relatively rare)&lt;/P&gt;</description>
      <pubDate>Sat, 29 Dec 2018 15:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/MULTIMEMBER-as-RANDOM-effect/m-p/523785#M26555</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-12-29T15:49:14Z</dc:date>
    </item>
  </channel>
</rss>

