<?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: Proc Glimmix for nominal, hierarchical, repeated measures data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227882#M12037</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=overall METHOD=Laplace;
CLASS state ID day round minute main;
MODEL main (order=freq ref=first)= / DIST=multinomial LINK=GLOGIT;
RANDOM INTERCEPT / SUBJECT=state group=main TYPE=VC ;
RANDOM INTERCEPT / SUBJECT=ID (state) group=main TYPE=VC ;
RANDOM INTERCEPT / SUBJECT=day (ID state) group=main TYPE=VC ;
RANDOM INTERCEPT / SUBJECT=round (day ID state) group=main TYPE=VC ;
RANDOM minute/ SUBJECT=round(day ID state) group=main type=ar(1) ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Try the above. &amp;nbsp;I switched the method to Laplace, and the final RANDOM to a G side repeated measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I suspect this will run into memory errors, if you have 1440 observations per round, multiple rounds per day, days per ID and IDs per state. &amp;nbsp;Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case you may need to look at some sort of spline mechanism as a fixed effect, and thus reduce the size of the Z part of the matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2015 18:26:26 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2015-09-30T18:26:26Z</dc:date>
    <item>
      <title>Proc Glimmix for nominal, hierarchical, repeated measures data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227769#M12029</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I am having trouble identifying the best SAS PROC for my analytic question.&amp;nbsp; I would ike to calculate an ICC for data that have a nominal (i.e. categorical but not ordinal) outcome.&amp;nbsp; The data is hierarchical, falling into four levels, as well as repeated over time.&amp;nbsp; I have not been able to find something that can do all of these things. Glimmix seems to handle nominal hierarchical data, but I have not found a way to add in the repeated part.&amp;nbsp; Is this possible?&amp;nbsp; Should I use a different proc?&amp;nbsp; My code thus far (although it is not all correct) is below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data structure is&amp;nbsp;"round" nested within "day" nested within participant ("ID")&amp;nbsp;nested within "state".&amp;nbsp; The outcome is the nominal variable "main" and it is repeated over "minute"&amp;nbsp;(1-1440 for each day).&amp;nbsp; The below code does not work with the last random statement included (returns error that Glimmix cannot have r-side random effects with multinomial distribution).&amp;nbsp; I am also not confident that the overall set up is correct.&amp;nbsp; I would like to calculate the ICC for the variation due to day.&amp;nbsp; This is the only parameter I am interested in.&amp;nbsp; Any suggestions are appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="navy" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT color="navy" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;GLIMMIX&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=overall &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;METHOD&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=RSPL; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;CLASS&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; state ID day round minute main; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;MODEL&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; main (order=freq ref=first)= / &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;DIST&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=multinomial &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;LINK&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=GLOGIT; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RANDOM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; INTERCEPT / &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;SUBJECT&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=state &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=main&lt;/FONT&gt; &lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;VC&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; ; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RANDOM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; INTERCEPT / &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;SUBJECT&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=ID (state) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=main &lt;/FONT&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;VC&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; ; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RANDOM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; INTERCEPT / &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;SUBJECT&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=day (ID state) &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=main &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;VC&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; ; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RANDOM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; INTERCEPT / &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;SUBJECT&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=round (day ID state) &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=main&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;VC&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; ; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="margin: 0px;"&gt;&lt;FONT face="Times New Roman,serif" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RANDOM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt; minute/ &lt;FONT color="#0000ff" face="Courier New"&gt;SUBJECT&lt;/FONT&gt;&lt;FONT color="#1f497d"&gt;=&lt;FONT face="Courier New" size="2"&gt;round&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;(day ID state) &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=main2 &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;VC&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;residual&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Sep 2015 21:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227769#M12029</guid>
      <dc:creator>khollid</dc:creator>
      <dc:date>2015-09-29T21:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for nominal, hierarchical, repeated measures data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227787#M12030</link>
      <description>Note: I moved this topic to Statistical Procedures.  You'll probably get a faster answer here.</description>
      <pubDate>Tue, 29 Sep 2015 23:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227787#M12030</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-09-29T23:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for nominal, hierarchical, repeated measures data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227882#M12037</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=overall METHOD=Laplace;
CLASS state ID day round minute main;
MODEL main (order=freq ref=first)= / DIST=multinomial LINK=GLOGIT;
RANDOM INTERCEPT / SUBJECT=state group=main TYPE=VC ;
RANDOM INTERCEPT / SUBJECT=ID (state) group=main TYPE=VC ;
RANDOM INTERCEPT / SUBJECT=day (ID state) group=main TYPE=VC ;
RANDOM INTERCEPT / SUBJECT=round (day ID state) group=main TYPE=VC ;
RANDOM minute/ SUBJECT=round(day ID state) group=main type=ar(1) ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Try the above. &amp;nbsp;I switched the method to Laplace, and the final RANDOM to a G side repeated measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I suspect this will run into memory errors, if you have 1440 observations per round, multiple rounds per day, days per ID and IDs per state. &amp;nbsp;Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case you may need to look at some sort of spline mechanism as a fixed effect, and thus reduce the size of the Z part of the matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 18:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/227882#M12037</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-09-30T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for nominal, hierarchical, repeated measures data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/228085#M12053</link>
      <description>&lt;P&gt;Thanks for your response. &amp;nbsp;I'm glad to know it is at least technically possible and how to do it. &amp;nbsp;I think I can change the dataset to have the minute not be 1-1440. &amp;nbsp;I don't have outcomes for every minute of the day, so I will pare it down to the ones that do (and time of day isn't of concern for the analysis). &amp;nbsp;I will also try to see if I can run it on the cluster in the next couple of days to see if that helps with memory (I'll have to sign up for access first). &amp;nbsp;I'll check back in and let you know how it goes once I've tried all my options. &amp;nbsp;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/228085#M12053</guid>
      <dc:creator>khollid</dc:creator>
      <dc:date>2015-10-01T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for nominal, hierarchical, repeated measures data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/257111#M13587</link>
      <description>&lt;P&gt;I ended up changing the data structure so that I could estimate this aim with minutes of activity as the outcome instead of having a nominal outcome, and I was able to get those models to run.&amp;nbsp; However, I'm now working on another aim and I'm back to needing to work with the nominal outcome again.&amp;nbsp; I have tried a lot of things but can't get the model to work.&amp;nbsp; In this case, I again have repeated observations of physical activity locations&amp;nbsp;for participants.&amp;nbsp; Each observation has an outcome of a categorical location of physical activity.&amp;nbsp; I am wanting to test for differences in activity locations by various factors (e.g. gender) accounting in some way for the correlation between repeated observations for individuals.&amp;nbsp; At this point we are ignoring all of the other nesting, we're just trying to get this basic control for repeated measures across ID included in the model.&amp;nbsp; My code thus far is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glimmix&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=mvpa &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;method&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=laplace;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ID maincat;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; maincat (REF=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"0"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;)=gender /&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dist&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=MULT &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;link&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=glogit &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;RANDOM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; intercept / &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SUBJECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=ID &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;vc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=maincat; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;covtest&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;/wald;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;title&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Main*GLogisticTest"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT size="2"&gt;Currently maincat is coded&amp;nbsp;0-9.&amp;nbsp; I previously had it as a character variable (e.g. "home" "road") but was told in a SAS help session at school that I needed to change it to 0-9.&amp;nbsp; Is that correct?&amp;nbsp; If so am I supposed to sort by maincat&amp;nbsp;before running the model?&amp;nbsp; I'm also unsure about whether or not maincat should be in the class statement and about method=laplace.&amp;nbsp; I thought I needed method=laplace, but the help session suggested not specifying the method=.&amp;nbsp; I keep getting issues of either not having a valid&amp;nbsp;objective function or&amp;nbsp;insufficient memory.&amp;nbsp; I tried it on the cluster and SAS returned an error of "Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this system.&amp;nbsp; Consider changing your model."&amp;nbsp;&amp;nbsp; I did try running binary models to get starting cov parms but inputting those parms received an error that the parms weren't feasible.&amp;nbsp; There are about 220 IDs, 128,000 observations (max obs per subject&amp;nbsp;2800).&amp;nbsp; Any suggestions?&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 19:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/257111#M13587</guid>
      <dc:creator>khollid</dc:creator>
      <dc:date>2016-03-16T19:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for nominal, hierarchical, repeated measures data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/260156#M13754</link>
      <description>&lt;P&gt;For a multinomial with a generalized logit link, you don't&amp;nbsp;&lt;U&gt;have&lt;/U&gt; to recode purely character strings to numeric values, but it helps when dealing with very large datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your analysis,&amp;nbsp;perhaps consider an error structure that is common across all main categories, at least to get started. &amp;nbsp;What occurs if you drop the group=maincat option from your RANDOM statement? &amp;nbsp;Also, with as much data as you have, consider using the pseudolikelihood method, rather than the Laplace method. &amp;nbsp;Just drop method=Laplace from the PROC GLIMMIX statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If neither of these give reasonable answers in a reasonable time, consider subsampling your data, and then jackknifing the results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 17:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-nominal-hierarchical-repeated-measures-data/m-p/260156#M13754</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-03-30T17:08:15Z</dc:date>
    </item>
  </channel>
</rss>

