<?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 repeated measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-repeated-measures/m-p/546276#M27326</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to be cautious when increasing the random parameters in the model. Based on the error that you got, the variance-covariance matrix might be showing negative values for variance or 0 for covariance. This means a simpler model (without a random intercept/linear trend) is a better alternative in your case. Also, I don't understand why you used 'rep' (i am assuming this to be the id variable) in the model as a&amp;nbsp;covariate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 19:30:39 GMT</pubDate>
    <dc:creator>Rajesh3</dc:creator>
    <dc:date>2019-03-26T19:30:39Z</dc:date>
    <item>
      <title>Glimmix repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-repeated-measures/m-p/546234#M27325</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hi, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I have a problem with repeated measures using Proc Glimmix and wonder if anyone could help me look at it and find a solution. Here is my code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080"&gt;glimmix&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;data&lt;/FONT&gt;=mortality &lt;FONT color="#0000ff"&gt;plots&lt;/FONT&gt;=residualpanel;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;class&lt;/FONT&gt; insect treatment rep time;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;model&lt;/FONT&gt; mort=insect|treatment|time rep/ &lt;FONT color="#0000ff"&gt;d&lt;/FONT&gt;=beta;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;random&lt;/FONT&gt; intercept / &lt;FONT color="#0000ff"&gt;subject&lt;/FONT&gt;=rep;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;random&lt;/FONT&gt; time / &lt;FONT color="#0000ff"&gt;residual&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;subject&lt;/FONT&gt;=insect*treatment*rep &lt;FONT color="#0000ff"&gt;type&lt;/FONT&gt;=AR(&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;lsmeans&lt;/FONT&gt; insect*treatment*time/ &lt;FONT color="#0000ff"&gt;slicediff&lt;/FONT&gt;=(insect treatment time) &lt;FONT color="#0000ff"&gt;Adjust&lt;/FONT&gt;=Tukey &lt;FONT color="#0000ff"&gt;lines&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;plots&lt;/FONT&gt;=meanplot (&lt;FONT color="#0000ff"&gt;cl&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;join&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;run&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;I am looking at the proportional mortality (mort) of two types of insects at various treatments (5 treatments) at repeated observations (3 time points).&amp;nbsp; Each treatment had 3 experimental units; the experiment was run in 2 repetitions (rep as block).&amp;nbsp; I would like to know the effect of insect, treatment, time, and interactions.&amp;nbsp; I use beta distribution. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;The model works without Random statements.&amp;nbsp; But after adding Random for repeated measures, it first showed that "&lt;SPAN&gt;WARNING: Obtaining minimum variance quadratic unbiased estimates as &lt;/SPAN&gt;&lt;SPAN&gt;starting values for the covariance parameters failed". &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;I realized &lt;SPAN&gt;PROC GLIMMIX can onl&lt;/SPAN&gt;&lt;SPAN&gt;y have one observation per level of &lt;/SPAN&gt;&lt;SPAN&gt;the repeated effect for each subject, and I have 3 experimental units for each treatment, a total of 2 insects * 5 treatments*2 repetitions*3 experimental units=60 units for each of the 3 observation times.&amp;nbsp;Thus I added a column to label each unit (1-60 for each observation time) and changed the code as:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080"&gt;glimmix&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;data&lt;/FONT&gt;=mortality &lt;FONT color="#0000ff"&gt;plots&lt;/FONT&gt;=residualpanel;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;class&lt;/FONT&gt; insect treatment rep unit time;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;model&lt;/FONT&gt; mort=insect|treatment|time rep/ &lt;FONT color="#0000ff"&gt;d&lt;/FONT&gt;=beta;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;random&lt;/FONT&gt; intercept / &lt;FONT color="#0000ff"&gt;subject&lt;/FONT&gt;=rep;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;random&lt;/FONT&gt; time / &lt;FONT color="#0000ff"&gt;residual&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;subject&lt;/FONT&gt;=unit &lt;FONT color="#0000ff"&gt;type&lt;/FONT&gt;=AR(&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;lsmeans&lt;/FONT&gt; insect*treatment*time/ &lt;FONT color="#0000ff"&gt;slicediff&lt;/FONT&gt;=(insect treatment time) &lt;FONT color="#0000ff"&gt;Adjust&lt;/FONT&gt;=Tukey &lt;FONT color="#0000ff"&gt;lines&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;plots&lt;/FONT&gt;=meanplot (&lt;FONT color="#0000ff"&gt;cl&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;join&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;run&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Then, there was an error "NOTE: Did not converge". &lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I wonder what step was wrong and how I could fix it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Many thanks!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 16:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-repeated-measures/m-p/546234#M27325</guid>
      <dc:creator>swuga</dc:creator>
      <dc:date>2019-03-26T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-repeated-measures/m-p/546276#M27326</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to be cautious when increasing the random parameters in the model. Based on the error that you got, the variance-covariance matrix might be showing negative values for variance or 0 for covariance. This means a simpler model (without a random intercept/linear trend) is a better alternative in your case. Also, I don't understand why you used 'rep' (i am assuming this to be the id variable) in the model as a&amp;nbsp;covariate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 19:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-repeated-measures/m-p/546276#M27326</guid>
      <dc:creator>Rajesh3</dc:creator>
      <dc:date>2019-03-26T19:30:39Z</dc:date>
    </item>
  </channel>
</rss>

