<?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 and residual problem in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/300452#M15983</link>
    <description>&lt;P&gt;Try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix plots = all ;
class paciente treat (ref = first) time (ref= first);
scaledq2=q2/100;
model scaledq2 = treat | time /solution  s dist = binomial ;
random int /subject = paciente;
covtest 'var(paciente) = 0' 0 .;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could also try dist=beta, but since you actually have values at 1, it isn't going to like those much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you need to go to the beta-binomial. &amp;nbsp;I don't see overdispersion here, but there are heavy tails, so I could be wrong. &amp;nbsp;If the straight binomial doesn't do well, then you may have to program in the variance function and link function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2016 18:16:45 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-09-23T18:16:45Z</dc:date>
    <item>
      <title>glimmix and residual problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/299724#M15949</link>
      <description>&lt;P&gt;I am doing analysis of a trial testing satisfaction in VA scale from 0 to 100 in a cross over trial. Patients were assigned to two treatment and followed for 12 months. After the 12 month the treatment was changed and followed for another 12 months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures of satisfaction were perfomed at the first week, then at 3 months , 6 months and 12 months (4 times).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distribution was not normal very skewed to the right. &amp;nbsp;I tried some different distributions such as exp and poisson, but residuals are not randomly distributed around zero, specially a the end it positive residuals drasticlly decreases to zero. Independent of the distribution I used , even normal residuals are very similar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q2 is satisfaction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am using.&amp;nbsp;&lt;BR /&gt;proc glimmix plots = all ;&lt;BR /&gt;class paciente treat (ref = first) time (ref= first);&lt;BR /&gt;model q2 = treat | time /solution link = log s dist = poisson ;&lt;BR /&gt;random int /subject = paciente;&lt;/P&gt;&lt;P&gt;covtest 'var(paciente) = 0' 0 .;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would overdispersion be a problem and a beta binomial be recommended?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 01:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/299724#M15949</guid>
      <dc:creator>mdsaraiv</dc:creator>
      <dc:date>2016-09-21T01:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: glimmix and residual problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/300452#M15983</link>
      <description>&lt;P&gt;Try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix plots = all ;
class paciente treat (ref = first) time (ref= first);
scaledq2=q2/100;
model scaledq2 = treat | time /solution  s dist = binomial ;
random int /subject = paciente;
covtest 'var(paciente) = 0' 0 .;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could also try dist=beta, but since you actually have values at 1, it isn't going to like those much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you need to go to the beta-binomial. &amp;nbsp;I don't see overdispersion here, but there are heavy tails, so I could be wrong. &amp;nbsp;If the straight binomial doesn't do well, then you may have to program in the variance function and link function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/300452#M15983</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-09-23T18:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: glimmix and residual problem</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/300744#M15993</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I did not worked , so I am trying now a non parametric solution I found in R the&amp;nbsp;&lt;SPAN&gt;(nparld). package. In the original paper authors mention a macro in SAs but I was not able to find it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maria&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/glimmix-and-residual-problem/m-p/300744#M15993</guid>
      <dc:creator>mdsaraiv</dc:creator>
      <dc:date>2016-09-26T12:49:13Z</dc:date>
    </item>
  </channel>
</rss>

