<?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 with repeated measurement: how to apply the random statement and a time variable? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137244#M36954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK--one pen, all treatments included, and consequently factor1 and factor2 are what are completely confounded with datenum.&amp;nbsp; Still doable, and I see why the REML approach is appealing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample data puts all of the proportions near 0.5.&amp;nbsp; If all of the observed proportions are in the 0.2 to 0.8 range, you will get acceptable results analyzing the proportions using the PROC MIXED approach, with the dependent variable as a proportion rather than a count.&amp;nbsp; As long as the range on the dependent value holds, then the known relation between the mean and variance won't be violated very badly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other alternative is to use RSPL--the equivalent of REML for non-normally distributed data.&amp;nbsp; It provides marginal estunates, but it also allows you to use df adjustment methods that should help handle the confounding of the covariates with datenum.&amp;nbsp; In this case, it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=hen&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; count/total = treatment factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution ddfm=kr2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum/residual &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=treatment &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if that doesn't work, maybe considering factor1 and factor2 as spatially related random factors rather than as fixed covariates would be an interesting approach.&lt;/P&gt;&lt;P&gt;&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>Fri, 01 Aug 2014 14:52:35 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-08-01T14:52:35Z</dc:date>
    <item>
      <title>Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137231#M36941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="post-text"&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&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;/DIV&gt;&lt;DIV&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;/DIV&gt;&lt;DIV&gt;In total about 480 chickens subdivided in 6 treatments have been followed over a period of 26 days.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&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;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=chicken;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; date id treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;event&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;) = treatment|factor1 |factor 2 / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; intercept/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=id(treatment);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; date/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;= ID(treatment) residual;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have tried to model the repeated nature of the experiment by using &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; date/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;= ID(treatment) residual; &lt;SPAN style="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;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="1" cellpadding="7" cellspacing="1" class="Table" frame="box" rules="groups" summary="Procedure Glimmix: Dimensions"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;G-side Cov. Parameters&lt;/TH&gt;&lt;TD class="r Data"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;R-side Cov. Parameters&lt;/TH&gt;&lt;TD class="r Data"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;Columns in X&lt;/TH&gt;&lt;TD class="r Data"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;Columns in Z per Subject&lt;/TH&gt;&lt;TD class="r Data"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;Subjects (Blocks in V)&lt;/TH&gt;&lt;TD class="r Data"&gt;485&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;Max Obs per Subject&lt;/TH&gt;&lt;TD class="r Data"&gt;26&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;However I beleive i should include date and id also in the model statement. However, If i do this using the most simple model&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;event&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;) = treatment factor1&amp;nbsp; factor 2 id date / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;; &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;sas gives the following indication:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Obtaining minimum variance quadratic unbiased estimates as starting values for the&amp;nbsp; covariance parameters failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i exclude date from the statement the model will not converge. When excluding id from the model, the model converges however as date takes all the credit for effect per day&amp;nbsp; factor1 and factor 2 are not provided with further output.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have also attempted the same models while changing dist= from binomial to binary, this time the model did not give the warning but neither did it converge, not even when pconv=1e-4.&amp;nbsp;&amp;nbsp; Excluding id had the same effect as in the binomial model,&amp;nbsp;&amp;nbsp; date takes all the credit for effect per day&amp;nbsp; factor1 and factor 2 are not provided with further output. While excluding date results in a model which will not converge even if pconv=1e-4.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;* Edit: In hindsight i suspect the warning to be due to the order in which the indepedent variables are placed in the model. When i modelled&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;event&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;) = treatment factor1&amp;nbsp; factor 2&amp;nbsp; id date / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;; I got the warning again but not when &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;event&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;) = treatment date factor1&amp;nbsp; factor 2&amp;nbsp; id / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;; *&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;Hopefully someone is willing to shed some light on my model.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Mariëlle&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an edit * in regards to the warning sas provided&#xD;
&#xD;
Message was edited by: Marielle Gerritsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 12:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137231#M36941</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-07-25T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137232#M36942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marielle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=chicken;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; date id treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: purple; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;) = treatment|date factor1 factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; intercept/ &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=id(treatment);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; date/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;= ID(treatment) residual;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;diff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;This will give the marginal means of the treatment, averaged over all dates, estimated at the mean values of factor1 and factor2.&amp;nbsp; This may or may not address all of your scientific issues, and you should realize that marginal means of binomials fit with R side covariance structures will tend to be biased toward the grand mean.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;Here are some things to consider:&amp;nbsp; How many dates do you have, are they equally spaced in time, and are all ID's observed on the same dates?&amp;nbsp; It is likely that some sort of autoregressive error structure should be considered.&amp;nbsp; Are their any conceivable interactions between the weather factors and the treatment?&amp;nbsp; I deleted these, but your analysis points out a significant factor1*factor2 effect.&amp;nbsp; Are these two factors on a similar scale?&amp;nbsp; The interaction you find may depend on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137232#M36942</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-28T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137233#M36943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;BR /&gt; Thank you for your time in looking at my question. I have tried to use the model you proposed, unfortunately the model refuses to converge.&amp;nbsp; I have tried increasing the number of iterations up to 200 and lowering the convergence criterion to 1e-4, also a combination ot the two does not result in a converged model. Also sorting by date, registered and ID did not result in convergence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did work was introducing a new continues numeric variable which represents date (datenum) in the model but not the repated statement, using the following model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background: white; color: navy; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;=chicken;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt; date id treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;) = treatment|datenum factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt; intercept/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;=id(treatment);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt; date/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;= ID(treatment) residual;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;diff&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For modeling the R-side effect a variable has to be identified as a class variable thus is introducing a continues variable into the modelstatement as a representation a correct solution? I doubt it is because i suspect i remove the repeated nature of the data by using datenum instead of date. Regarding modelling the repeated measures using the R-side. For glimmix it was the only method i could clearly find online and i am not aware of any other methods of doing this, do you know of any other methods?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In regard to you question about the dates and the autoregressive structure: I followed chickens for 26 days continouesly with not all id's being observed on the same days. If chickens were not registred&amp;nbsp; the dataset automatically defaults to setting an observation of the chicken not being registred.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;I have attempted to work with an ar(1) autoregressivestructure before however i find that the model will often not converge. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;Surprisingly when i set type=ar(1) in both the model you proposed and the one depicted above the models would only converge when i set pconv=1e-4, other combinations of pconv and inititer had no effect. However, in the model you proposed factor1 and factor2 had no output while they had an output using datenum instead of date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;I stumbled upon changing the convergence criterion somewhere but am uncertain what levels are stil viewed as correct in modelling?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;In regard to the interactions between variables, the model was indeed overspecified. I have removed the interaction between treatment and the weatherfactors but did include an interaction between them, as they respectively represent windspeed/direction and rainfall. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;Mariëlle&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 10:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137233#M36943</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-07-29T10:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137234#M36944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marielle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=chicken method=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum id treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;nloptions maxiter=5000 tech=nmsimp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; registered (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: purple; font-size: 10pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;) = treatment|datenum factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binary &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; intercept / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=id(treatment);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;random datenum / subject=id(treatment) type=ar(1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;diff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;Shifting to a binary distribution from binomial may help, as I suspect all of your responses are zero or one.&amp;nbsp; I threw in the change to Nelder-Mead simplex as an optimaiztion technique, which requires a LOT of iterations but is not as touchy as some other techniques.&amp;nbsp; I also went to datenum because I know the data are correctly sorted on that (sometimes actual dates are messy).&amp;nbsp; With uneven spacing per individual, but even spacing throughout the study, an AR(1) should work, so I threw that in too.&amp;nbsp; Probably too many changes at once &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; but maybe this will help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137234#M36944</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-29T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137235#M36945</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 for the input. I'm only wondering should &lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;random datenum / subject=id(treatment) type=ar(1);&lt;/SPAN&gt; not be &lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;random datenum / subject=id(treatment) type=ar(1) residual; to model the repeated nature of the data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt;"&gt;Mariëlle&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137235#M36945</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-07-29T12:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137236#M36946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; Since the distribution is binary/binomial, the mean and variance are functionally related.&amp;nbsp; By changing to quasi-likelihood estimation (rather than pseudo-likelihood), the results are conditional on the random effects, rather than marginals averaged over the random effects.&amp;nbsp; See Stroup's &lt;EM&gt;Generalized Linear Mixed Models&lt;/EM&gt; for an extensive discussion on this issue.&amp;nbsp; For very large multi-site clinical trials, this approach has been shown to be not much better than the pseudo-likelihood estimation, but for smaller studies, it provides a more unbiased result.&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, 29 Jul 2014 12:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137236#M36946</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-29T12:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137237#M36947</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;I have attempted to use your model however after running the model for 8 hours sas provided that the 5000 iterations specified were not&amp;nbsp; sufficient to converge the model. Would you suggest increasing maxiter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On another hand, a colleque suggested it might better if I use REML to model my data. However, if I am correct in sas REML are performed using the mixed procedure which cannot cope with binary data? He tried this analysis in GENSTAT and in his specified model he only used ID and date as random variables not ID(row). Furthermore he did not use date in the model statement because it would nullify the specification of date as a random factor in the overall model. Is glimmix sensitive to the same limitation of the random statement or is glimmix specifically able to handle random factors included in the modelstatement because it combines the mixed and linear regression models? In most glimmix models i have encountered date or time set as a random variable was included in the model statement,&amp;nbsp; but it vexes me why it gives so much trouble in my model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, he suggested I might use percentages of chickens registred per day per treatment instead of the actual numbers. Might this simplify the calculations in either a glimmix or REML because you have fewer datapoints per day?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137237#M36947</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-07-31T08:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137238#M36948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestion to condense to a proportion should certainly help.&amp;nbsp; You could do that with the events/trials syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reiterate my comment above:&lt;/P&gt;&lt;P&gt;See Stroup's &lt;EM&gt;Generalized Linear Mixed Models&lt;/EM&gt; for an extensive discussion on this issue (method of fitting).&amp;nbsp; Personally, I'm a strong believer in the conditional approach, rather than the marginal REML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as maxiter, for NMSIMP, I have gone up to 10,000.&amp;nbsp; After that I begin to worry about nonlinearity/sensitive dependence on initial conditions/machine precision swamping the actual convergence.&amp;nbsp; I really think going to the events/trials syntax should help in this area--it opens up other techniques as possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if expressed as proportions, do you have any possibility of quasi-separation (either all or none of the birds registered on some days on one treatment, and the opposite on a different treatment)?&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>Thu, 31 Jul 2014 11:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137238#M36948</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-31T11:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137239#M36949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now created a table containing the variables datenum (26 in total)), treatment (1 to 6) count (the total amount of hens registred at the pophole per treatment), total (the total amount of hens per treatment). Also included are Percent (the respective proportions of the countdata), factor1 and factor2.&lt;/P&gt;&lt;P&gt;All of my data is similar to the values depicted in the table below so i have no cases in which the proportion (Percent) is either 0 or 1 for one treatment and the opposite for another, thus both binary values 1 or 0 occur for every treatment on every day measurements were taken, so neither is there complete or quasicomplete-seperation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" height="711" style="padding: 0px 5.4pt; border: currentColor; width: 657px; height: 564px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0px 5.4pt; border: 1pt solid windowtext;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;datenum&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P&gt;treatment&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;COUNT&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;PERCENT&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;total&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;Factor1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;Factor2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;50&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;0.626880642&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.504551372&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.756606836&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;48&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;0.601805416&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;81&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.504551372&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.756606836&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;39&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;0.488966901&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;81&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.504551372&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.756606836&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;49&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;0.614343029&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;81&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.504551372&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.756606836&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;43&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;0.539117352&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;81&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.504551372&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.756606836&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentColor windowtext windowtext; padding: 0px 5.4pt;" valign="top" width="66"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="37"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="56"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;43&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;0.539117352&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="41"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;81&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.504551372&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentColor windowtext windowtext currentColor; padding: 0px 5.4pt;" valign="top" width="89"&gt;&lt;BR /&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-GB;"&gt;-0.756606836&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attempted to adjust the model you described previously and used it on the data as shown above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=hen &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;method&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; count/total = datenum|treatment factor1 |factor2 / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; intercept/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; datenum/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=treatment&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;type&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; color: teal; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="mso-bidi-font-family: 'SAS Monospace'; line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: SAS Monospace;"&gt;Though the model converges &lt;EM&gt;I&lt;/EM&gt; get no significance values (a model is made but df's are 0) and the sas log provides the following commentary:&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-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;proc&lt;BR /&gt;glimmix data=hen method=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;1105&amp;nbsp; class datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;1106&amp;nbsp; model count/total = datenum|&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 11px;"&gt;treatment&lt;/SPAN&gt; factor1|factor2 / link=logit dist=binomial solution;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;1107&amp;nbsp; random intercept/ subject=&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 11px;"&gt;treatment&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;1108&amp;nbsp; random datenum/ subject=&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 11px;"&gt;treatment&lt;/SPAN&gt; type=ar(1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;1109&amp;nbsp; Lsmeans &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 11px;"&gt;treatment&lt;/SPAN&gt; /pdiff;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;1110&amp;nbsp; run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;NOTE:&lt;BR /&gt;Writing HTML Body file: sashtml68.htm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;NOTE:&lt;BR /&gt;Convergence criterion (ABSGCONV=0.00001) satisfied.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt; mso-bidi-font-family: 'SAS Monospace';"&gt;NOTE:&lt;BR /&gt;Estimated G matrix is not positive definite.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have i interpreted the events/trials option in the right way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 15:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137239#M36949</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-07-31T15:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137240#M36950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because the treatment is both random and fixed.&amp;nbsp; Remove the first random statement (the one with intercept in it).&amp;nbsp; It is absorbing all of the degrees of freedom, I think.&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>Fri, 01 Aug 2014 11:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137240#M36950</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-01T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137241#M36951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After adjusting &lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;sas still does not provide df's or significance value's and the log says the following&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background: white; color: navy; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=hen &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;method&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; count/total = datenum|treatment factor1 |factor2 / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; datenum/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=treatment &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;type&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: navy; line-height: 115%; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML Body file: sashtml28.htm&lt;/P&gt;&lt;P&gt;NOTE: Convergence criterion (ABSGCONV=0.00001) satisfied.&lt;/P&gt;&lt;P&gt;NOTE: Estimated G matrix is not positive definite.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.20 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.72 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137241#M36951</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-08-01T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137242#M36952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm, maybe we have the wrong subject for the random statment.&amp;nbsp; Been a long time since I worked on a poultry study, but I would assume from your description that there are multiple pens per treatment.&amp;nbsp; If so, then summarize the proportions by pen, and change to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=hen &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;method&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum treatment pen;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; count/total = datenum|treatment factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum/ &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=pen &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;If not (treatment is completely confounded with pen), then the random statement is still exhausting all of the degrees of freedom, and consequently datenum will have to be removed from the model statement (something I really don't like doing, as it is a design factor):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=hen &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;method&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=laplace;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; count/total = treatment factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum/ &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=treatment &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;Hope this works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137242#M36952</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-01T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137243#M36953</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;Unfortunately you have now hit on the weakness I feared at the beginning of the study. Unfortunately the current set-up of the study was already applied before I began working with the data. Because it is currently a trial study all the chickens, irregardless of treatment, are kept in the same pen on the same farm. Though i have replicates in time there are no replicates in treatment dispersed over seperate pens, only a multitude of individuals occupying the same pen. This probably also clarifies why my earlier attempts at modelling gave so many problems when i included date (datenum) in the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use the second model you proposed and indeed I got values for treatment. However, something is still eating away the DF for the co-variates factor1 and factor2. With your explanation regarding confoundment of treatment and pen could it happen because for each treatment there is complete overlap between datenum and weatherfactors, since all chickens are kept in the same pen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since my colleque said he got results in genstat using REML i am considering to use this method. Though it cannot use datenum as a variable within the model statement i should be able to get an indication of its effect. My colleque indicated that using data from the table 'estimated variance components' the random variable is estimated to have a significant influence when the componentvalue/ s.e. &amp;gt;1.&lt;/P&gt;&lt;P&gt;Since random variables cannot be used in the model statement and i believe proc mixed cannot handle binary data I expect it to look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;mixed&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=hen;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; count= treatment Factor1|factor2/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;solution&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;repeated&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; datenum/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;= treatment &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;type&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=ar(&lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; color: teal; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;lsmeans&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; treatment/diff;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case do you assume it would be better to use count data (I could not find the oppertunity to apply dist=poisson in proc mixed so i doubt using count data) or percent (count/total)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I wish you a very good weekend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariëlle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 14:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137243#M36953</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-08-01T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137244#M36954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK--one pen, all treatments included, and consequently factor1 and factor2 are what are completely confounded with datenum.&amp;nbsp; Still doable, and I see why the REML approach is appealing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample data puts all of the proportions near 0.5.&amp;nbsp; If all of the observed proportions are in the 0.2 to 0.8 range, you will get acceptable results analyzing the proportions using the PROC MIXED approach, with the dependent variable as a proportion rather than a count.&amp;nbsp; As long as the range on the dependent value holds, then the known relation between the mean and variance won't be violated very badly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other alternative is to use RSPL--the equivalent of REML for non-normally distributed data.&amp;nbsp; It provides marginal estunates, but it also allows you to use df adjustment methods that should help handle the confounding of the covariates with datenum.&amp;nbsp; In this case, it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=hen&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; count/total = treatment factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution ddfm=kr2&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum/residual &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=treatment &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if that doesn't work, maybe considering factor1 and factor2 as spatially related random factors rather than as fixed covariates would be an interesting approach.&lt;/P&gt;&lt;P&gt;&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>Fri, 01 Aug 2014 14:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137244#M36954</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-01T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137245#M36955</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;to give you a short updat for now. The mixed model as i proposed it in my last response did not work. When i changed subject=treatment to subject=datenum in the repeated statement it did fortunately. I got nearly identical results to those produced by my collegue in Genstat. The only thing that bothers me a little, though i don't know if it is valid, are the dimensions expected from the model.&amp;nbsp; I would like to see the subjects and observations per subject in the dimensions table to reflect 6 subjects (treatment) with 26 observations (datenum) instead i obtain 26 subjects with 6 observations per subject. This is to be expected when datenum is set as subject but it feels a bit counter-intuitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore i also attempted to use your RLSP model. My first thought was that itresembles the model i proposed in my first post. Furhtermore, I'm not sure if this is because I use genstat 9.2 but the program does not recognise ddfm=kr2, it assumes a typo&amp;nbsp; and per default it used ddfm=kr instead. Also, sas provides the following warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Pseudo-likelihood update fails in outer iteration 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Literature suggested using laplace or quadrature to circumvent this problem, however due to the residual statement this cannot work. Otherwise implementing the PARM statement was suggested to set the starting values, in order to select the correct covariates it was suggested to use the variables presented in '&lt;SPAN class="quote"&gt;Covariance Parameter Estimates&lt;/SPAN&gt;” table. However i'm unsure how to decide which initial values to set.&lt;/P&gt;&lt;P&gt;this is the table belonging to your proposed model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="7" cellspacing="1" class="Table" frame="box" rules="groups" summary="Procedure Glimmix: Covariance Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;AR(1)&lt;/TH&gt;&lt;TH class="l Data"&gt;treatment&lt;/TH&gt;&lt;TD class="r Data"&gt;0.9995&lt;/TD&gt;&lt;TD class="r Data"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l RowHeader" scope="row"&gt;Residual&lt;/TH&gt;&lt;TH class="l Data"&gt; &lt;/TH&gt;&lt;TD class="r Data"&gt;193126&lt;/TD&gt;&lt;TD class="r Data"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering factor1 and factor2 as spatially related random factors would just be achieved by placing them in a random statement (random factor1 factor2) i presume?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marielle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 10:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137245#M36955</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-08-07T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137246#M36956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I will try not to throw SAS/STAT 13.1, or even 12.1 syntax and methods at you since you are at SAS9.2, and both of my machines are 9.3 and higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't go into the spatial coordinate part yet, but there is definitely a problem with factor1 and factor2 being completely confounded with datenum.&amp;nbsp; Could you compare the results from the following two analyses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=hen&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; count/total = treatment datenum/ &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution ddfm=kr(firstorder)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; datenum/residual &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=treatment &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=ar(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: teal; font-size: 10pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;glimmix&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=hen&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; /*For this to work, the data must be sorted by factor1 and factor2 within treatment*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; count/total = treatment factor1|factor2 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=logit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;solution ddfm=kr(firstorder)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; factor1 factor2/ &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;=treatment &lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;Lsmeans&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; treatment/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: blue; font-size: 10pt;"&gt;pdiff&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'SAS Monospace'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I don't know that this will accomplish much at this point.&amp;nbsp; My hope is that, due to the confounding, we can end up replacing factor1 and factor2 with datenum, and get a reasonable result.&amp;nbsp; Or vice versa.&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>Thu, 07 Aug 2014 13:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137246#M36956</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-07T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137247#M36957</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;So you first model works. I have the subject-observation per subject structure i expect. Furthermore both datenum and treatment ar specified as having a significant effect. Though the DF values are a bit strange, like 69,8 or 17.23, etc. I have also attempted this model using method laplace and removing bothd the ddfm and residual options. The output is nearly equal only the DF values seem better, 125.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the other model i sorted the data using:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;=hen;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;by&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt; treatment factor1 factor2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="mso-bidi-font-family: 'SAS Monospace'; color: navy; font-size: 10pt; background: white; font-family: 'SAS Monospace';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;I hope this was what you intended. The model itself provided the expected structure furthermore all variables had an output but were non-significant. However, the DF for all tests was 1. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'SAS Monospace'; font-size: 10pt; mso-bidi-font-family: 'SAS Monospace';"&gt;Marielle&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 15:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137247#M36957</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-08-07T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137248#M36958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drop the ddfm=kr(firstorder) option.&amp;nbsp; The correlation between time points/factors is eating up the degrees of freedom.&amp;nbsp; However, that correlation needs to be accounted for in calculating the standard errors, so add EMPIRICAL as an option in the PROC GLIMMIX statement.&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>Fri, 08 Aug 2014 12:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137248#M36958</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-08T12:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137249#M36959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you did it! My output describes a model using g-side cov. parameters only&amp;nbsp; with 6 subjects- 26 observations per subject. Furthermore, all variables have an output with treatment, factor2 and the factor1*factor2 being significant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if i understand the application of emperical correctly (in a laymans description): because factor1, factor2 and datenum were confounded both factors could replace datenum in the random statement to indicate the repetitions. By sorting both factors in treatment&amp;nbsp; these repetitions were physically grouped in the dataset already, creating the correct covaraite structure for applying the emperical option. Therefore there was no need to indicate factor1 and factor2 in the class statement or to specify type=ar(1).&amp;nbsp; The emperical statement corrects the standard errors for the bias caused by the loss of the (i'm not sure how to call this: covariance structure) specified by type=ar(1) or&amp;nbsp; the ddfm options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was wondering in&amp;nbsp; Stroup's &lt;EM&gt;Generalized Linear Mixed Models &lt;/EM&gt;they indicate that earlier emperical functions could cause a bias themselves if the dataset is to small and they also discuss an correction presented nearly ten years ago. My dataset it not that large and i wonder if this correction is default in SAS or if i should account for it somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariëlle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 14:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137249#M36959</guid>
      <dc:creator>mgerritsen</dc:creator>
      <dc:date>2014-08-08T14:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix with repeated measurement: how to apply the random statement and a time variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137250#M36960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad it is working and is interpretable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing about the sandwich/empirical estimators is that they can be biased, but there are several options.&amp;nbsp; In particular, the empirical=mbn option goes a long way to eliminate that bias, so you might try that.&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>Fri, 08 Aug 2014 14:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Glimmix-with-repeated-measurement-how-to-apply-the-random/m-p/137250#M36960</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-08-08T14:28:21Z</dc:date>
    </item>
  </channel>
</rss>

