<?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, modelling repeated measures using the random statement, how? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glimmix-modelling-repeated-measures-using-the-random/m-p/139046#M7280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my reply in the SAS Procedures forum.&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>Mon, 28 Jul 2014 15:17:48 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-07-28T15:17:48Z</dc:date>
    <item>
      <title>Proc glimmix, modelling repeated measures using the random statement, how?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glimmix-modelling-repeated-measures-using-the-random/m-p/139045#M7279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi all,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I am trying to model the following data in SAS using proc glimmix and i would like feedback if i have modelled my data correctly.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;My data consist of individual chickens (ID) who are grouped by treatment in the enclosure they occupy (chickens receiving different treatments are kept in the same enclosure). I want to know if treatment influences if they appear at popholes present in their enclosure (registered, in which '1' describes an event). Furthermore if two weather variables (Factor1, Factor2 , averages per day) may influence this appearance. Repeated measurements (measured once a day) have been taken of the same individual chickens over a course of days (Date).&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;In total about 480 chickens subdivided in 6 treatments have been followed over a period of 26 days.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I have attempted the following model but i am unsure if it is correct since I am new to using both proc glimmix and sas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: navy; background-position: initial;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: navy; background-position: initial;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=chicken;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; date id treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: purple; background-position: initial;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;) = treatment|factor1 |factor 2 / &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; intercept/ &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=id(treatment);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; date/&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;= ID(treatment) residual;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: navy; background-position: initial;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I have tried to model the repeated nature of the experiment by using &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; date/&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;= ID(treatment) residual; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;and this model gives an output which states that only factor2 and factor1*factor2 have a significant effect (type 3 test). The outcome feels right as individual chickens are treated as individual subjects with&amp;nbsp; the correct number of observations per subject and the model is not overdispersed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="7" cellspacing="1" class="Table" frame="box" rules="groups" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" summary="Procedure Glimmix: Dimensions"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="l RowHeader" scope="row" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;G-side Cov. Parameters&lt;/TH&gt;&lt;TD class="r Data" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="l RowHeader" scope="row" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;R-side Cov. Parameters&lt;/TH&gt;&lt;TD class="r Data" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="l RowHeader" scope="row" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;Columns in X&lt;/TH&gt;&lt;TD class="r Data" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="l RowHeader" scope="row" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;Columns in Z per Subject&lt;/TH&gt;&lt;TD class="r Data" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="l RowHeader" scope="row" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;Subjects (Blocks in V)&lt;/TH&gt;&lt;TD class="r Data" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;485&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="l RowHeader" scope="row" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;Max Obs per Subject&lt;/TH&gt;&lt;TD class="r Data" style="padding-right: 4px; padding-left: 4px; border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;26&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;However I believe i should include date and id also in the model statement. Must the factor specified in the random residual statement be included in the model statement? Because, if i do this using the most simple model &lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: purple; background-position: initial;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;) = treatment date factor1&amp;nbsp; factor 2&amp;nbsp; id / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: black; background-position: initial;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-weight: inherit; font-family: 'SAS Monospace'; color: blue; background-position: initial;"&gt;solution;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt;, the model&amp;nbsp; does not converge, not even when pconv=1e-4 or when i sorted the model to ID or registered.&amp;nbsp;&amp;nbsp; Excluding ID had had the effect that the factor date takes shows an effect of day however,&amp;nbsp;&amp;nbsp; factor1 and factor 2 (which have different means per day) are not provided with further output (only a - where a value should be). While excluding date results in a model which will not converge even if pconv=1e-4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully someone can provide some feedback,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Mariëlle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 12:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glimmix-modelling-repeated-measures-using-the-random/m-p/139045#M7279</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-07-28T12:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glimmix, modelling repeated measures using the random statement, how?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glimmix-modelling-repeated-measures-using-the-random/m-p/139046#M7280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my reply in the SAS Procedures forum.&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>Mon, 28 Jul 2014 15:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glimmix-modelling-repeated-measures-using-the-random/m-p/139046#M7280</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-28T15:17:48Z</dc:date>
    </item>
  </channel>
</rss>

