<?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 Glimmix - modelling nested random effects in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-modelling-nested-random-effects/m-p/77516#M22422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a basic question regarding modelling random effects in Glimmix. &lt;/P&gt;&lt;P&gt;I have a binary dependent variable. &lt;/P&gt;&lt;P&gt;I have fecal bacterial isolates from 2 cohorts of animals nested within farms, I have multiple samples from animals within the same sampling time, but also over two week intervals. &lt;/P&gt;&lt;P&gt;I have weekly samples from animals. Every time I sampled the animals I have data on 3 isolates per animal and sampling time. I have two cohorts of animals that I followed with approx 6 months apart. I have over 30 farms in my database. &lt;/P&gt;&lt;P&gt;I want to control for the fact that I repeatedly sampled the same animals, but also that I had clustering of animals within a cohort and within a farm. &lt;/P&gt;&lt;P&gt;Since bacterial isolates in these animals are very transitory, it is not really a 'repeated measure' on the animals. &lt;/P&gt;&lt;P&gt;I was thinking something like this below, but am new to glimmix. It seem to have so many random options, I just want to control for the clustering of isolates within animals within cohorts and farms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc glimmix data=;&lt;/P&gt;&lt;P&gt;class animal cohort farm x y:&lt;/P&gt;&lt;P&gt;model y= x/dis=bin link=logit oddsration;&lt;/P&gt;&lt;P&gt;random intercept/subjet=farm;&lt;/P&gt;&lt;P&gt;random intercept/subject=animal(farm) type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cat. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 20:07:06 GMT</pubDate>
    <dc:creator>AnnaB</dc:creator>
    <dc:date>2013-03-14T20:07:06Z</dc:date>
    <item>
      <title>Glimmix - modelling nested random effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-modelling-nested-random-effects/m-p/77516#M22422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a basic question regarding modelling random effects in Glimmix. &lt;/P&gt;&lt;P&gt;I have a binary dependent variable. &lt;/P&gt;&lt;P&gt;I have fecal bacterial isolates from 2 cohorts of animals nested within farms, I have multiple samples from animals within the same sampling time, but also over two week intervals. &lt;/P&gt;&lt;P&gt;I have weekly samples from animals. Every time I sampled the animals I have data on 3 isolates per animal and sampling time. I have two cohorts of animals that I followed with approx 6 months apart. I have over 30 farms in my database. &lt;/P&gt;&lt;P&gt;I want to control for the fact that I repeatedly sampled the same animals, but also that I had clustering of animals within a cohort and within a farm. &lt;/P&gt;&lt;P&gt;Since bacterial isolates in these animals are very transitory, it is not really a 'repeated measure' on the animals. &lt;/P&gt;&lt;P&gt;I was thinking something like this below, but am new to glimmix. It seem to have so many random options, I just want to control for the clustering of isolates within animals within cohorts and farms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc glimmix data=;&lt;/P&gt;&lt;P&gt;class animal cohort farm x y:&lt;/P&gt;&lt;P&gt;model y= x/dis=bin link=logit oddsration;&lt;/P&gt;&lt;P&gt;random intercept/subjet=farm;&lt;/P&gt;&lt;P&gt;random intercept/subject=animal(farm) type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cat. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 20:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-modelling-nested-random-effects/m-p/77516#M22422</guid>
      <dc:creator>AnnaB</dc:creator>
      <dc:date>2013-03-14T20:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix - modelling nested random effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-modelling-nested-random-effects/m-p/77517#M22423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks good--some minor typos (oddsration should be oddsratio, subjet should be subject).&amp;nbsp; I would change the type=un to type=chol, and would add method=quad or method=laplace to the proc statement.&amp;nbsp; To get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc glimmix method=quad data=&lt;/P&gt;&lt;P&gt;class animal cohort farm x y:&lt;/P&gt;&lt;P&gt;model y= x/dis=bin link=logit oddsratio;&lt;/P&gt;&lt;P&gt;random intercept/subject=farm;&lt;/P&gt;&lt;P&gt;random intercept/subject=animal(farm) type=un;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 12:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-modelling-nested-random-effects/m-p/77517#M22423</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-03-15T12:00:25Z</dc:date>
    </item>
  </channel>
</rss>

