<?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: GLIMMIX on clustered data with ordinal response in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216708#M11741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful as always.&amp;nbsp; That ran.&amp;nbsp; One thing that worries me is that the df is the same for the city level effects and the person level effects.&amp;nbsp; Is that correct?&amp;nbsp; I know estimating the df in these models is tricky and full of options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 20:14:59 GMT</pubDate>
    <dc:creator>plf515</dc:creator>
    <dc:date>2015-08-04T20:14:59Z</dc:date>
    <item>
      <title>GLIMMIX on clustered data with ordinal response</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216706#M11739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set that has people nested in cities and the dependent variable is ordinal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The person variable is NQ and the city variable is CITY.&amp;nbsp; There are about 4,000 people and 30 cities&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are both individual and city level effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data = DSNAME;&lt;/P&gt;&lt;P&gt; class nq city;&lt;/P&gt;&lt;P&gt; model&amp;nbsp; DV = indlevelvar1 indlevelvar2 ....&amp;nbsp;&amp;nbsp; citylevelvar1 citylevelvar2 ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /dist = mult link = clogit;&lt;/P&gt;&lt;P&gt; random intercept /subject = nq group =&amp;nbsp; city;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and got "model is too large to run in a reasonable time"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am not completely clear on whether I should use&amp;nbsp; / subject = city or subject = nq&amp;nbsp;&amp;nbsp; or something else (both ran). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 18:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216706#M11739</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2015-08-04T18:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX on clustered data with ordinal response</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216707#M11740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to work from the bottom up here.&amp;nbsp; What you have now would give a separate variance component due to nq for each city.&amp;nbsp; Is that a reasonable approach?&amp;nbsp; I think it would be if you have multiple observations on each individual.&amp;nbsp; Here I am not so sure.&amp;nbsp; I would be inclined to view nq as the "error", and city as an additional variance component.&amp;nbsp; I would try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=DSNAME;&lt;/P&gt;&lt;P&gt;class nq city;&lt;/P&gt;&lt;P&gt;model DV(ref='&amp;lt;put something in here that makes sense&amp;gt;' = &amp;lt;fixed effects vector&amp;gt;/dist=mult link=clogit;&lt;/P&gt;&lt;P&gt;random intercept/subject=city;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have lots of data relative to the number of variables being fit, I would consider using METHOD=LAPLACE as well, thus giving a conditional response, and putting you in the position of being able to compare models on their IC values.&amp;nbsp; But with only about 130 people per city, and assuming the DV has 4 levels, you have about 33 records to estimate each level.&amp;nbsp; Could run into stability and quasi-separation problems.&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 19:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216707#M11740</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-04T19:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX on clustered data with ordinal response</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216708#M11741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful as always.&amp;nbsp; That ran.&amp;nbsp; One thing that worries me is that the df is the same for the city level effects and the person level effects.&amp;nbsp; Is that correct?&amp;nbsp; I know estimating the df in these models is tricky and full of options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 20:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216708#M11741</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2015-08-04T20:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX on clustered data with ordinal response</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216709#M11742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you are expecting a df around 30 (minus fixed effects estimated) for the city level df, so I think the key here is ddfm=bw (between-within) even though this isn't necessarily a repeated measures design.&amp;nbsp; I think the default is ddfm=contain, but since you have observations at the nq level, that is may be why it ends up using the residual df for everything.&amp;nbsp; One way to check would be to estimate the BLUPs for each city by adding the solution option to the RANDOM statement and looking at both specifications.&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>Wed, 05 Aug 2015 11:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216709#M11742</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-05T11:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX on clustered data with ordinal response</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216710#M11743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 23:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-on-clustered-data-with-ordinal-response/m-p/216710#M11743</guid>
      <dc:creator>plf515</dc:creator>
      <dc:date>2015-08-05T23:45:33Z</dc:date>
    </item>
  </channel>
</rss>

