<?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: modeling right and left eye in a mixed model with small sample size in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424835#M22371</link>
    <description>&lt;P&gt;looks like you are fitting a random coefficients model. They fit a random coefficients model here and discuss the note you are seeing in the log:&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect034.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect034.htm&lt;/A&gt; ie&lt;/P&gt;&lt;PRE&gt;Estimated G matrix is not positive definite.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did the patients receive a different treatment in each eye so that they act as their own control? if not, you could eg take the average for both eyes within a patient and simplify your dataset. That would make the analysis and interpretation simpler&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 06:40:19 GMT</pubDate>
    <dc:creator>pau13rown</dc:creator>
    <dc:date>2018-01-04T06:40:19Z</dc:date>
    <item>
      <title>modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/422517#M22366</link>
      <description>&lt;P&gt;I am running a mixed model for a small sample with 3 groups - 10 in each group. I am interested in whether the outcome variable (continuous) mean is significantly different by group. I have longitudinal data on 3 timepoints. I also have data for right and left eye. How should i model my random effects with such a small sample? I am getting a convergence error with the below code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc mixed data = dat;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;class subject group eye;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;model y= group&amp;nbsp; /solution;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;random group /sub = subject(visit eye) type=un;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;lsmeans group / pdiff adjust=tukey;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 22:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/422517#M22366</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-12-19T22:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/422757#M22367</link>
      <description>&lt;P&gt;using type=un may often fail to converge because of the large number of parameters being estimated. Have you tried eg compound symmetry or another structure. My feeling is that in an analysis plan they will often prespecify type=un but will note that something else will be tried if convergence isn't achieved&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/422757#M22367</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2017-12-20T16:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424458#M22368</link>
      <description>What do you think about losing one of my nested random effects?</description>
      <pubDate>Tue, 02 Jan 2018 21:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424458#M22368</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-01-02T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424648#M22369</link>
      <description>&lt;P&gt;is one of the timepoints your baseline, or you're saying you have 3 post-baseline timepoints?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: why 'group' in the random statement? this example may help, they analyse eye data using proc mixed: &lt;A href="http://www2.sas.com/proceedings/sugi29/188-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/188-29.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424648#M22369</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-01-03T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424782#M22370</link>
      <description>There is no baseline in the usual sense where we have some sort of intervention. I just have 3 datapoints across time. I would like to use time as continous because they are not identical across patients. I also have a small sample, so I want to minimize the number of parameters as much as possible.&lt;BR /&gt;&lt;BR /&gt;Group should not be random, you are right. Based on your reference, I came up with:&lt;BR /&gt;&lt;BR /&gt;proc mixed data = dat;&lt;BR /&gt;class subject group eye;&lt;BR /&gt;model y= group/solution;&lt;BR /&gt;random int time/ subject=eye(subject);&lt;BR /&gt;lsmeans group/ pdiff adjust=tukey;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;But I am still getting a G matrix not positive definite error. Not sure what to do?</description>
      <pubDate>Wed, 03 Jan 2018 23:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424782#M22370</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-01-03T23:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424835#M22371</link>
      <description>&lt;P&gt;looks like you are fitting a random coefficients model. They fit a random coefficients model here and discuss the note you are seeing in the log:&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect034.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_mixed_sect034.htm&lt;/A&gt; ie&lt;/P&gt;&lt;PRE&gt;Estimated G matrix is not positive definite.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did the patients receive a different treatment in each eye so that they act as their own control? if not, you could eg take the average for both eyes within a patient and simplify your dataset. That would make the analysis and interpretation simpler&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 06:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/424835#M22371</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-01-04T06:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/425368#M22372</link>
      <description>&lt;P&gt;They didnt receive a different treatment in each eye. I thought about doing that, but due to the small sample size, I thought it would be better to model both eyes as nested within ID. I read that the output for this would be interpreted as the average between each eye. Is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/425368#M22372</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-01-05T20:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: modeling right and left eye in a mixed model with small sample size</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/425486#M22373</link>
      <description>&lt;P&gt;Does the response change over time? If so, then time needs to be incorporated as a fixed effects factor in your MODEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the response is a function of time, does the response have a linear relationship with time? If you have not done so already, plot response versus time for each subject in each group to visually assess the nature of the relationship. With only 3 timepoints for each subject, you don't have many options other than linearity--but unfortunately lack of options does not mean that the linearity assumption is valid. As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;&amp;nbsp;notes, allowing regression parameters (like slope) to vary among subjects (i.e., a random&amp;nbsp;slopes model) is a possible (but not necessarily required) approach for this analysis. The plot would provide input into whether slopes vary appreciably.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If both eyes received the same treatment (in other words, if each subject was assigned to only one group), then the experimental unit for the group factor is a subject; eyes are essentially subsamples and should not be incorporated in the model as if they are independent replications. You can use a dataset with observations at the eye-level; the &lt;EM&gt;correct&lt;/EM&gt; model specification will implicitly average over the two eyes. Or as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;&amp;nbsp;notes, you could use the mean over the two eyes as the response in a simpler model. If you have data for both eyes for all subjects, the test for group effect will be the same with both approaches; there is no sample size advantage to one approach or the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 04:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/modeling-right-and-left-eye-in-a-mixed-model-with-small-sample/m-p/425486#M22373</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-01-06T04:53:39Z</dc:date>
    </item>
  </channel>
</rss>

