<?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 GLMM with interactions in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLMM-with-interactions/m-p/210371#M11381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use GLIMMIX to model a GLMM but SAS struggles so I am probably doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say hypothetically that I have data about radiologists, who are trying to diagnose if tumors are cancerous using 2 different imaging machines. Each doctor checks all 50 patients using both machines. Each patient has one or more tumors to be checked. It is known (by biopsy) that the tumors are cancerous, basically I am trying to model the sensitivity, in a way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y = diagnosed correctly / did not diagnose correctly&lt;/P&gt;&lt;P&gt;G = Group (the machine being used)&lt;/P&gt;&lt;P&gt;Patient_ID&lt;/P&gt;&lt;P&gt;Doctor_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying this model (based on a book, I NEED all these interactions):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data= data method = laplace; &lt;/P&gt;&lt;P&gt;&amp;nbsp; class &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Doctor_ID&lt;/SPAN&gt;&lt;/SPAN&gt; G ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model Y =&amp;nbsp; G /solution dist = binary link = logit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; random &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID&lt;/SPAN&gt; Doctor_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID&lt;/SPAN&gt;*Doctor_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID&lt;/SPAN&gt;*G Doctor_ID*G ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LSmeans G / pdiff cl;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The model ran and ran....and then I got an incomplete output with this msg: &lt;/SPAN&gt;The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to use QUAD didn't work because the random statement wasn't suitable, and using neither QUAD or LAPLACE also didn't run good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S If I use PROC MIXED (imagining that Y is continuous - for averaging) it actually works and give me estimates which are like the average sensitivity I calculated "by hand".&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 04:59:12 GMT</pubDate>
    <dc:creator>BlueNose</dc:creator>
    <dc:date>2015-08-31T04:59:12Z</dc:date>
    <item>
      <title>GLMM with interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLMM-with-interactions/m-p/210371#M11381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use GLIMMIX to model a GLMM but SAS struggles so I am probably doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say hypothetically that I have data about radiologists, who are trying to diagnose if tumors are cancerous using 2 different imaging machines. Each doctor checks all 50 patients using both machines. Each patient has one or more tumors to be checked. It is known (by biopsy) that the tumors are cancerous, basically I am trying to model the sensitivity, in a way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y = diagnosed correctly / did not diagnose correctly&lt;/P&gt;&lt;P&gt;G = Group (the machine being used)&lt;/P&gt;&lt;P&gt;Patient_ID&lt;/P&gt;&lt;P&gt;Doctor_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying this model (based on a book, I NEED all these interactions):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data= data method = laplace; &lt;/P&gt;&lt;P&gt;&amp;nbsp; class &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Doctor_ID&lt;/SPAN&gt;&lt;/SPAN&gt; G ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model Y =&amp;nbsp; G /solution dist = binary link = logit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; random &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID&lt;/SPAN&gt; Doctor_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID&lt;/SPAN&gt;*Doctor_ID &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Patient_ID&lt;/SPAN&gt;*G Doctor_ID*G ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LSmeans G / pdiff cl;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The model ran and ran....and then I got an incomplete output with this msg: &lt;/SPAN&gt;The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to use QUAD didn't work because the random statement wasn't suitable, and using neither QUAD or LAPLACE also didn't run good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S If I use PROC MIXED (imagining that Y is continuous - for averaging) it actually works and give me estimates which are like the average sensitivity I calculated "by hand".&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 04:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLMM-with-interactions/m-p/210371#M11381</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2015-08-31T04:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: GLMM with interactions</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLMM-with-interactions/m-p/224200#M11850</link>
      <description>&lt;P&gt;I think what might have to do is "roll up" the data to at least the Patient ID level, and perhaps to the Doctor ID level. &amp;nbsp;If you go to the Patient ID level, then the response variable could be put into the events/trials syntax, with events=number of tumors correctly identified and trials=number of tumors per individual. &amp;nbsp;With this approach, code would look something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data= data method = laplace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class &lt;SPAN&gt;Patient_ID &lt;SPAN&gt;Doctor_ID&lt;/SPAN&gt;&lt;/SPAN&gt; G ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model events/trials&amp;nbsp;=&amp;nbsp; G /solution ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; random &lt;SPAN&gt;Patient_ID&lt;/SPAN&gt; Doctor_ID &lt;SPAN&gt;Patient_ID&lt;/SPAN&gt;*Doctor_ID &lt;SPAN&gt;Patient_ID&lt;/SPAN&gt;*G Doctor_ID*G ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LSmeans G / pdiff cl;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What this accomplishes is to switch from the binary approach to the default binomial for events/trials, which is a lot more stable as far as algorithms go. &amp;nbsp;Dealing with multiple 0 and 1 records may lead to the objective function jumping around.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another thing to consider would be adding an NLOPTIONS statement, and using one of the derivative-free optimization methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 14:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLMM-with-interactions/m-p/224200#M11850</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-09-02T14:29:31Z</dc:date>
    </item>
  </channel>
</rss>

