<?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 repeated measures with multinomial non-ordered outcome in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216325#M11730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a case where you are restricted to fitting a GLMM rather than a GEE model.&amp;nbsp; If your data are equally spaced in time, simply remove the option 'residual' from your RANDOM statement.&amp;nbsp; Personally, with 3 measures on time (index1), I would fit it as an unstructured matrix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, this results in looking at your fixed effects averaged over the values of index1.&amp;nbsp; To look for associations, you will likely need to model index1 as a fixed effect, and include interactions with each of your other fixed effects.&amp;nbsp; And so the model becomes more complex, which will lead to difficulties in comparing models with different covariates.&amp;nbsp; To get information criteria, you will have to try to fit the model using a quasi-likelihood method such as METHOD=LAPLACE.&amp;nbsp; Changes relative to a "null" model would give some measure of how much information is retained using the model at hand (which gets around having to nest the models, and looking at changes in -2LL).&amp;nbsp; It also gives a measure of model fit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=long&amp;nbsp; ic=q method=laplace;&lt;/P&gt;&lt;P&gt;class ID index1 vht relation situation;&lt;/P&gt;&lt;P&gt;model situation(ref=first) =index1 relation relation*index1 cqtarief cqtarief*index1 mzleef mzleef*index1 vht&amp;nbsp; vht*index1/dist=multinomial link=glogit solution;&lt;/P&gt;&lt;P&gt;random index1/subject=ID type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also a bit confused by the subject in your example (which is subject=volgnr).&amp;nbsp; Is this the same as ID?&amp;nbsp; If not, then does it need to be on the CLASS statement, or will that lead to output with hundreds (or more) levels?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 13:26:31 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2015-08-04T13:26:31Z</dc:date>
    <item>
      <title>Proc Glimmix for repeated measures with multinomial non-ordered outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216324#M11729</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 would like some help on my modeling for the following situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with 200 subjects. For each subject (indicated by ID), their situation is determined at three moments, being either 'living at home', 'institutionalized', or 'dead' (situation is my dependent outcome). At the first measurement moment, every subject lives at home. I want to see which variables are associated with transition to one of the other two situations. &lt;/P&gt;&lt;P&gt;The variable 'time' indicates whether it is the first, second or third measurement moment. &lt;/P&gt;&lt;P&gt;The dataset also includes a number of variables, for which I would like to check if this is related to the transition. Some are continuous (cqtarief, mzleef), but the most important one is ordinal with 4 categories (vht). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this code:&lt;/P&gt;&lt;P&gt;proc glimmix data=long&amp;nbsp; ic=q;&lt;/P&gt;&lt;P&gt;class ID index1 vht relation situation;&lt;/P&gt;&lt;P&gt;model situation(ref=first) = relation cqtarief mzleef vht /dist=multinomial link=glogit solution;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following questions:&lt;/P&gt;&lt;P&gt;- I can't include "random index1 / subject=volgnr type=ar(1) residual;" because i have multinomial distribution. How can I model the dependency of the measurements within subjects? Or does the procedure take care of this?&lt;/P&gt;&lt;P&gt;- How can I compare models with different covariates?&lt;/P&gt;&lt;P&gt;- How do I assess model fit?&lt;/P&gt;&lt;P&gt;- Do I need to fit covariance structures (e.g. un/cs/ar(1))?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help on this matter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 09:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216324#M11729</guid>
      <dc:creator>anker1</dc:creator>
      <dc:date>2015-08-04T09:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for repeated measures with multinomial non-ordered outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216325#M11730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a case where you are restricted to fitting a GLMM rather than a GEE model.&amp;nbsp; If your data are equally spaced in time, simply remove the option 'residual' from your RANDOM statement.&amp;nbsp; Personally, with 3 measures on time (index1), I would fit it as an unstructured matrix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, this results in looking at your fixed effects averaged over the values of index1.&amp;nbsp; To look for associations, you will likely need to model index1 as a fixed effect, and include interactions with each of your other fixed effects.&amp;nbsp; And so the model becomes more complex, which will lead to difficulties in comparing models with different covariates.&amp;nbsp; To get information criteria, you will have to try to fit the model using a quasi-likelihood method such as METHOD=LAPLACE.&amp;nbsp; Changes relative to a "null" model would give some measure of how much information is retained using the model at hand (which gets around having to nest the models, and looking at changes in -2LL).&amp;nbsp; It also gives a measure of model fit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=long&amp;nbsp; ic=q method=laplace;&lt;/P&gt;&lt;P&gt;class ID index1 vht relation situation;&lt;/P&gt;&lt;P&gt;model situation(ref=first) =index1 relation relation*index1 cqtarief cqtarief*index1 mzleef mzleef*index1 vht&amp;nbsp; vht*index1/dist=multinomial link=glogit solution;&lt;/P&gt;&lt;P&gt;random index1/subject=ID type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also a bit confused by the subject in your example (which is subject=volgnr).&amp;nbsp; Is this the same as ID?&amp;nbsp; If not, then does it need to be on the CLASS statement, or will that lead to output with hundreds (or more) levels?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216325#M11730</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-04T13:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for repeated measures with multinomial non-ordered outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216326#M11731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for this reply. Including the interaction terms makes sense indeed.&lt;/P&gt;&lt;P&gt;However, with the code you sent I get an error message saying that I have to include a group. So I added this part:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; index1/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=ID &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=situation &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=un;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;(by the way, volgnr is indeed the same as ID, I translated it but forgot that one)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;However, I'm not sure what the consequences are for including that group=situation statement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I'm currently thinking about the possibility to use my outcome as a binary one (living at home vs not living at home).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Can I just replace "/dist=multinomial link=glogit" with "/dist=binary" ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 14:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216326#M11731</guid>
      <dc:creator>anker1</dc:creator>
      <dc:date>2015-08-06T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glimmix for repeated measures with multinomial non-ordered outcome</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216327#M11732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you copy in the error message?&amp;nbsp; The random statement that it looks like you are using will fit separate unstructured matrices for each level of situation which is the dependent variable, and while that might work (I don't know as I've never seen that error and so have never used that syntax), it also greatly increases the number of parameters to be estimated, and hence the need for a LOT more data to get good values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as moving to a binary response, I think that will really help.&amp;nbsp; However, to really get things to work you may have consider "collapsing" the data to something that looks like a successes/trials syntax for each timepoint, moving to dist=binomial, and identifying something other than ID as the subject.&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Glimmix-for-repeated-measures-with-multinomial-non-ordered/m-p/216327#M11732</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-11T12:15:30Z</dc:date>
    </item>
  </channel>
</rss>

