<?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: Lower order terms and interactions involving random effects in proc mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209022#M11330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not often that I come down on the opposite of the fence from Rick, but this is going to be one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a real difference between including main fixed effects in the face of interaction fixed effects and the same thing on the random side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can always "construct" fixed main effects from the interaction solution (Google "means model" Milliken, for example).&amp;nbsp; However, for random effects, I am not so sure as I was when I started this post.&amp;nbsp; I guess the key here would be to look at the degrees of freedom for the F tests of the fixed effects under the two specifications.&amp;nbsp; Which reflects the "skeleton ANOVA" to steal a phrase from Walt Stroup?&amp;nbsp; That is the parameterization I would trust first--and that Is the basis of Rick's "Don't do it" I suspect.&amp;nbsp; However, as models become more complex having G matrix that isn't positive definite can run the risk of failure to converge, especially if you are working in PROC GLIMMIX with a conditional model due to distributional assumptions.&amp;nbsp; In this case, I would carefully consider removing variance components that go to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the example in the OP post, the family*food variance component dominates the algorithm such that family has a zero estimate under REML.&amp;nbsp; See what happens if you change the methodology to maximum likelihood (or use the NOBOUND option).&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, 18 Jun 2015 18:25:26 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2015-06-18T18:25:26Z</dc:date>
    <item>
      <title>Lower order terms and interactions involving random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209020#M11328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;Say you measure the size of individuals from a number of families, for each of these families some of the individuals are reared on high food, and some low food.&amp;nbsp; I am interested in whether the families respond differently to food treatment (i.e the interaction). The code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;mixed&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=mylib.size &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;covtest&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; family food;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; size = food;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; family family*food;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I find that the covariance parameter estimate for family is 0 but family*food is significant. I also get the error ‘estimated G matrix is not positive definite’. If I remove family and keep family*food, family*food is significant and there are no error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;My question is: Can I have family*food in the random statement without family?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209020#M11328</guid>
      <dc:creator>DIHS</dc:creator>
      <dc:date>2015-06-18T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lower order terms and interactions involving random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209021#M11329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question of whether you can include an interaction term in a model without including the main terms has a long and stormy history.&amp;nbsp; Can you include the interaction without&amp;nbsp; the main effect? Yes, but many (most?) statisticians believe that you should include the main effects. It make interpretation easier.&amp;nbsp; For a long discussion of this subject, see &lt;A href="http://stats.stackexchange.com/questions/11009/including-the-interaction-but-not-the-main-effects-in-a-model"&gt;this CrossValidated discussion.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd vote "don't do it."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidentally, your example is essentially the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/66859/HTML/default/viewer.htm#statug_mixed_gettingstarted01.htm"&gt;Getting Started example for PROC MIXED&lt;/A&gt;, which uses data that all of us can run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 12:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209021#M11329</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-06-18T12:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lower order terms and interactions involving random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209022#M11330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not often that I come down on the opposite of the fence from Rick, but this is going to be one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a real difference between including main fixed effects in the face of interaction fixed effects and the same thing on the random side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can always "construct" fixed main effects from the interaction solution (Google "means model" Milliken, for example).&amp;nbsp; However, for random effects, I am not so sure as I was when I started this post.&amp;nbsp; I guess the key here would be to look at the degrees of freedom for the F tests of the fixed effects under the two specifications.&amp;nbsp; Which reflects the "skeleton ANOVA" to steal a phrase from Walt Stroup?&amp;nbsp; That is the parameterization I would trust first--and that Is the basis of Rick's "Don't do it" I suspect.&amp;nbsp; However, as models become more complex having G matrix that isn't positive definite can run the risk of failure to converge, especially if you are working in PROC GLIMMIX with a conditional model due to distributional assumptions.&amp;nbsp; In this case, I would carefully consider removing variance components that go to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the example in the OP post, the family*food variance component dominates the algorithm such that family has a zero estimate under REML.&amp;nbsp; See what happens if you change the methodology to maximum likelihood (or use the NOBOUND option).&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, 18 Jun 2015 18:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209022#M11330</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-06-18T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lower order terms and interactions involving random effects in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209023#M11331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Steve, overall. For the variance components model, it shouldn't make a difference (for most purposes) if&amp;nbsp; you take out or leave in the main effect random term (assuming you don't use the NOBOUND option). As the model gets more complicated, the nonpositive definite G property can be quite problematic. Then you can take out the main effect for the random term. Model fitting be quite a bit easier when 0 variance terms are not included. If you are uncertain about denominator degrees of freedom for the different models, use ddfm=KR option on the model statement. This will typically make everything work out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With NOBOUND, things are different. The 0 variance for the main effect may end up as a negative "variance". So, all the random terms are needed. This negative variance is nonsensical for a conditional interpretation of a model, but works fine for the marginal interpretation (i.e., as long as the TOTAL variance is positive). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 20:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Lower-order-terms-and-interactions-involving-random-effects-in/m-p/209023#M11331</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-06-18T20:05:23Z</dc:date>
    </item>
  </channel>
</rss>

