<?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 Need Help with Proc MIXED, nested random factor removal in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282343#M14880</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I run an analysis by using PROC MIXED as implemented in the EG 7.1 software. I have the code below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PROC MIXED DATA = WORK.SORTTempTableSorted covtest&lt;BR /&gt;PLOTS(ONLY)=ALL&lt;BR /&gt;METHOD=REML;&lt;BR /&gt;CLASS IsolStr &amp;nbsp; &amp;nbsp;IsolRepeatStr &amp;nbsp; &amp;nbsp;IsolVialStr &amp;nbsp; &amp;nbsp;InfStaStr;&lt;BR /&gt;MODEL TotFec=InfStaStr;&lt;BR /&gt;RANDOM &amp;nbsp; IsolStr &amp;nbsp; &amp;nbsp; IsolRepeatStr(IsolStr) &amp;nbsp; &amp;nbsp; IsolVialStr(IsolRepeatStr &amp;nbsp; IsolStr ) / TYPE=VC;&lt;BR /&gt;RUN; QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As can be seen in the code, I have a fixed factor, "InfStaStr," and several nested random factors. The random factors "IsolStr" and "IsolVialStr(IsolRepeatStr IsolStr)" had a varainace zero when the full model was run, but the nested term "IsolRepearStr(IsolStr)" did not a have a variance of zero (see attached file), and I get the "NOTE: Estimated G matrix is not positive definite."&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I read in the SAS manual that in a case like this, random factors with variance zero can be romoved from the model. If I follow that advise, I would be left with a model with a single nested factor, "IsolRepearStr(IsolStr)," where the factor&amp;nbsp;it is nested whitin, "IsolStr," is not present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, my question is: is it statistically sound to remove "IsolStr" in this case? Thank you for any help on this matter. &lt;BR /&gt;Igforek&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2016 15:22:12 GMT</pubDate>
    <dc:creator>igforek</dc:creator>
    <dc:date>2016-07-06T15:22:12Z</dc:date>
    <item>
      <title>Need Help with Proc MIXED, nested random factor removal</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282343#M14880</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I run an analysis by using PROC MIXED as implemented in the EG 7.1 software. I have the code below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PROC MIXED DATA = WORK.SORTTempTableSorted covtest&lt;BR /&gt;PLOTS(ONLY)=ALL&lt;BR /&gt;METHOD=REML;&lt;BR /&gt;CLASS IsolStr &amp;nbsp; &amp;nbsp;IsolRepeatStr &amp;nbsp; &amp;nbsp;IsolVialStr &amp;nbsp; &amp;nbsp;InfStaStr;&lt;BR /&gt;MODEL TotFec=InfStaStr;&lt;BR /&gt;RANDOM &amp;nbsp; IsolStr &amp;nbsp; &amp;nbsp; IsolRepeatStr(IsolStr) &amp;nbsp; &amp;nbsp; IsolVialStr(IsolRepeatStr &amp;nbsp; IsolStr ) / TYPE=VC;&lt;BR /&gt;RUN; QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As can be seen in the code, I have a fixed factor, "InfStaStr," and several nested random factors. The random factors "IsolStr" and "IsolVialStr(IsolRepeatStr IsolStr)" had a varainace zero when the full model was run, but the nested term "IsolRepearStr(IsolStr)" did not a have a variance of zero (see attached file), and I get the "NOTE: Estimated G matrix is not positive definite."&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I read in the SAS manual that in a case like this, random factors with variance zero can be romoved from the model. If I follow that advise, I would be left with a model with a single nested factor, "IsolRepearStr(IsolStr)," where the factor&amp;nbsp;it is nested whitin, "IsolStr," is not present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, my question is: is it statistically sound to remove "IsolStr" in this case? Thank you for any help on this matter. &lt;BR /&gt;Igforek&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 15:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282343#M14880</guid>
      <dc:creator>igforek</dc:creator>
      <dc:date>2016-07-06T15:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Proc MIXED, nested random factor removal</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282500#M14892</link>
      <description>&lt;P&gt;For nested variance component (VC) effects, you can leave the 0-variance terms in the model. The results will be the same with or without them. Also, there is nothing wrong with leaving in a single random effects term as you described.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282500#M14892</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-06T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Proc MIXED, nested random factor removal</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282631#M14894</link>
      <description>&lt;P&gt;OK, it seems reasonable. I checked and there is not much change in the output when removing the random nested factors with value zero from the model. Thank you for your answer.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 07:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-Help-with-Proc-MIXED-nested-random-factor-removal/m-p/282631#M14894</guid>
      <dc:creator>igforek</dc:creator>
      <dc:date>2016-07-07T07:39:42Z</dc:date>
    </item>
  </channel>
</rss>

