<?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: ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870671#M343897</link>
    <description>Thank you, STeveDenham. I was actually thinking about using sub= id at the beginning, but I was not sure; you confirmed it!!&lt;BR /&gt;</description>
    <pubDate>Wed, 19 Apr 2023 22:52:05 GMT</pubDate>
    <dc:creator>Malk020</dc:creator>
    <dc:date>2023-04-19T22:52:05Z</dc:date>
    <item>
      <title>ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870399#M343784</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please I need your urgent help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;Hierarchically data and I want to fit three level models in proc Mixed, it was working perfectly when I specify (random intercept/sub=Id), but when I changed it to nested I got missing in Pr&amp;gt; F and degree of freedom = 0 in Type 3 Tests of Fixed Effects table output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods output LSMeans = means9;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc mixed data = data method = ml covtest;&lt;BR /&gt;class Id TIME sport_level;&lt;BR /&gt;model dep =&amp;nbsp;TIME sport_level&amp;nbsp; TIME*sport_level;&lt;BR /&gt;repeated / type=vc;&lt;BR /&gt;random intercept/sub=sport_level;&lt;BR /&gt;random intercept/sub=sport_level(TIME);&lt;BR /&gt;lsmeans TIME*sport_level;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=means9;&lt;BR /&gt;series x=TIME y=Estimate / group= sport_level;&lt;BR /&gt;scatter x= TIME y=Estimate /group =&amp;nbsp;sport_level&lt;BR /&gt;yerrorlower = Lower yerrorupper = Upper;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am completely confused, and I really need your help. I&amp;nbsp; do not know where even the issue at least someone explains it to me!&lt;BR /&gt;&lt;BR /&gt;Knowing that Time is a character variable (0 1 2 ) and sport_level is the character variable (0 1 2 3 4 5 6 7 until 40). In each&amp;nbsp;sport_level there is time 0 1 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is coming from lsmeans because when I delete it and type model dep = /; is gives the intercept values and residuals.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 15:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870399#M343784</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2023-04-18T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870545#M343831</link>
      <description>&lt;P&gt;The most likely reason for along these lines is inadequate sample size to estimate all of the variance components you are trying to fit. This is certainly possible if I correctly understand your design, You say there are 3 levels of time and 40 levels of sport_level. Your RANDOM statements are trying to fit 160 random intercepts, and the random effects and fixed effects are confounded completely. (a random effect for every level of sport_level and sport_level*time). Additionally, you are fitting some R side variance components. So, when you specify that the id's are the subject, you have adequate data to have things work out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suspect that there are WARNINGs in the log as well, that relate to non-convergence or the hessian matrix being singular.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing you might try is to remove sport_level and sport_level*time from the MODEL statement, so that you are modeling variance at three levels ( sport_level, time within sport_level and residual (id)).&amp;nbsp; This leaves time as the only fixed effect, and is very similar to your fully nested model (MODEL= /;). Note that lsmeans are not appropriate for that model statement. You can get the predicted BLUP estimates, however, using an OUTPUT statement, and then post process those values to get means and confidence intervals. Note that p values are not easily estimated for comparison of these values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 13:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870545#M343831</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-04-19T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870555#M343833</link>
      <description>Thank you so much for your reply and your explanation. I really helpful. Actually, it worked when I added the Degree of Freedom (Kenward-Roger method (DDFM=KR) or the Satterthwaite method (DDFM=SATTERTH).&lt;BR /&gt;&lt;BR /&gt;But there are two more questions: the intercept estimate for sport_leve and sport_level(TIME) = 0 in the Covariance Parameter Estimates table; why are = 0? Does that mean there is something wrong, so the output is also incorrect?? Based on my knowledge, the intercept has no biological meaning, so it does not matter what the value is, but I am unsure.&lt;BR /&gt;&lt;BR /&gt;Regarding your thought and answers, No, there are no warning messages.&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; One thing you might try is to remove sport_level and sport_level*time from the MODEL statement, so that you are modeling variance at three levels ( sport_level, time within sport_level and residual (id))&lt;BR /&gt;&lt;BR /&gt;That's correct; it would work, but if I want to use the lsmeans statement, the variables must be in model statements.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870555#M343833</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2023-04-19T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870563#M343834</link>
      <description>&lt;P&gt;The estimates of the variance components for sport_level and time(sport_level) are zero because the fixed effects sport_level and sport_level*time completely describe the data. You would need non-identical observations for multiple subjects (=id) at each level of the sport_level*time to avoid this. The number of observations to get a meaningful estimate of each variance component is probably at least 8 to 10.&amp;nbsp; So, in YOUR analysis dataset, there is no additional variation due to these factors. The F tests and any comparison tests from the LSMEANS statement reflect this. They are not "wrong", except that you probably don't have enough data to estimate these random effects, and may wish to drop them entirely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look back at your analysis and your descriptions of what is going on, and would consider fitting a model with no RANDOM effects, and a REPEATED time/subject=id type=UN; statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STeveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870563#M343834</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-04-19T14:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870671#M343897</link>
      <description>Thank you, STeveDenham. I was actually thinking about using sub= id at the beginning, but I was not sure; you confirmed it!!&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Apr 2023 22:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/870671#M343897</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2023-04-19T22:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: ESTIMATING THREE-LEVEL MODELS for Proc Mixed model, the output P_vale F is missing and DF = 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/871365#M344208</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;What do you think about using GLIMMIX procedure instead?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 23 Apr 2023 01:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ESTIMATING-THREE-LEVEL-MODELS-for-Proc-Mixed-model-the-output-P/m-p/871365#M344208</guid>
      <dc:creator>Malk020</dc:creator>
      <dc:date>2023-04-23T01:36:47Z</dc:date>
    </item>
  </channel>
</rss>

