<?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: Interpreting proc mixed  output in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642218#M30727</link>
    <description>&lt;P&gt;I just noticed something else curious (which is my way of saying oops, I missed something important).&amp;nbsp; You have month as a continuous variable in the model and monthcat as an effect in the random statement.&lt;/P&gt;
&lt;P&gt;Consequently, you wont be able to include month or month*treat in the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;Interpretation of the Month effect now is wholly dependent on the values in the solution vector.&amp;nbsp; For month, there is an increase in length for treatment 2 of 0.4220 per month, whereas for treatment 1, it is (0.4220 - 0.1460 = 0.2760).&amp;nbsp; The test for month is whether that slope (here associated with treatment 2, the reference group) is different from zero.&amp;nbsp; The test after month*treat 1 is whether the slopes differ significantly.&amp;nbsp; Note that there is no specific test whether the slope associated with treatment 1 is different from zero.&lt;/P&gt;
&lt;P&gt;You could get this test, but not the test of differences/interaction, by including a NOINT option in the model statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2020 12:28:23 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-04-23T12:28:23Z</dc:date>
    <item>
      <title>Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642167#M30709</link>
      <description>&lt;P&gt;Hello statisticians,&lt;/P&gt;&lt;P&gt;Please i'll be glad to get any input on this as mixed models are not my strong suit. It's a clinical trial data comparing 2 treatments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know&lt;/P&gt;&lt;P&gt;1. if the two treatments differ in their effects on length (outcome)&lt;BR /&gt;2. If there's a&amp;nbsp; difference in the pattern of&amp;nbsp; change between subjects receiving the two treatments and if&amp;nbsp; one treatment show results more quickly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data= new1 COVTEST method=ml;
Class ID treat monthcat;
MODEL lenght= month  treat month*treat /solution;
RANDOM intercept month /SUB=ID TYPE=UN G V;
 repeated  monthcat/subject=id type=toep  r ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChuksManuel_0-1587622147898.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38572iD8CDE3304F6FBC94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChuksManuel_0-1587622147898.png" alt="ChuksManuel_0-1587622147898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thought is that Number 1 is asking for treatment effects on outcome, so i will use -0.1278. But what does the negative effect mean?&lt;/P&gt;&lt;P&gt;Then what does "pattern of change" imply in number 2. Is it the treatment*time effect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 06:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642167#M30709</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-04-23T06:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642197#M30721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236266"&gt;@ChuksManuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello statisticians,&lt;/P&gt;
&lt;P&gt;Please i'll be glad to get any input on this as mixed models are not my strong suit. It's a clinical trial data comparing 2 treatments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to know&lt;/P&gt;
&lt;P&gt;1. if the two treatments differ in their effects on length (outcome)&lt;BR /&gt;2. If there's a&amp;nbsp; difference in the pattern of&amp;nbsp; change between subjects receiving the two treatments and if&amp;nbsp; one treatment show results more quickly?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is my code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data= new1 COVTEST method=ml;
Class ID treat monthcat;
MODEL lenght= month  treat month*treat /solution;
RANDOM intercept month /SUB=ID TYPE=UN G V;
 repeated  monthcat/subject=id type=toep  r ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChuksManuel_0-1587622147898.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38572iD8CDE3304F6FBC94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChuksManuel_0-1587622147898.png" alt="ChuksManuel_0-1587622147898.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thought is that Number 1 is asking for treatment effects on outcome, so i will use -0.1278. But what does the negative effect mean?&lt;/P&gt;
&lt;P&gt;Then what does "pattern of change" imply in number 2. Is it the treatment*time effect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Question 1: there is no statistically significant effect due to the main effect of TREAT. You can see this because the effect of TREAT=1 has a large p-value, which is in the PR&amp;gt;|t| column (a p-value&amp;gt;0.05 indicates the effect is not statistically significant, not different than a zero effect, with type I error rate of 0.05).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 2: There is a statistically significant effect due to MONTH. There is also a significant interaction effect MONTH*TREAT, which could indicate that the change in the effect of TREAT=1 due to MONTH is different than the change in effect of TREAT=2 due to MONTH.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 10:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642197#M30721</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-23T10:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642214#M30726</link>
      <description>&lt;P&gt;Many times it is hard to decipher the SOLUTION vector, but&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;has done a great job here.&amp;nbsp; Alternatively, look at the table of Type 3 tests.&amp;nbsp; You should see the following significance levels:&lt;/P&gt;
&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;0.0001&lt;/P&gt;
&lt;P&gt;Treat&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.5887&lt;/P&gt;
&lt;P&gt;Month*Treat&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0026&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The p values and thus the inferences are the same as for t tests in the SOLUTION vector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if you add an LSMEANS statement like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSMEANS month treat month*treat/diff;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will see that the difference between the main effects of treatment is 0.1278, with treatment 2 being greater by this amount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 12:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642214#M30726</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-23T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642218#M30727</link>
      <description>&lt;P&gt;I just noticed something else curious (which is my way of saying oops, I missed something important).&amp;nbsp; You have month as a continuous variable in the model and monthcat as an effect in the random statement.&lt;/P&gt;
&lt;P&gt;Consequently, you wont be able to include month or month*treat in the LSMEANS statement.&lt;/P&gt;
&lt;P&gt;Interpretation of the Month effect now is wholly dependent on the values in the solution vector.&amp;nbsp; For month, there is an increase in length for treatment 2 of 0.4220 per month, whereas for treatment 1, it is (0.4220 - 0.1460 = 0.2760).&amp;nbsp; The test for month is whether that slope (here associated with treatment 2, the reference group) is different from zero.&amp;nbsp; The test after month*treat 1 is whether the slopes differ significantly.&amp;nbsp; Note that there is no specific test whether the slope associated with treatment 1 is different from zero.&lt;/P&gt;
&lt;P&gt;You could get this test, but not the test of differences/interaction, by including a NOINT option in the model statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 12:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642218#M30727</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-04-23T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642394#M30732</link>
      <description>Thank you for the clarification</description>
      <pubDate>Thu, 23 Apr 2020 19:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642394#M30732</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-04-23T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642703#M30752</link>
      <description>&lt;P&gt;A bit more clarification. The /E3 option added to the MODEL statement will help you understand what hypotheses are being tested in the type-3 tests that PROC MIXED produces. If you want to play along at home &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; here is some simulated data that comes close to the situation you have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new1;
   call streaminit(672435);
   do id=1 to 200;
      treat=ceil(rand("uniform")*2);
      do month=1 to 6;
	     monthcat=month;
         length=2+month+rand("normal")*.5;
		 if treat=2 then length=length+month*treat/5;
		 output;
   end; end;
run;

proc mixed data= new1 COVTEST method=ml;
Class ID treat monthcat;
MODEL length= month  treat month*treat /solution e3;
RANDOM intercept month /SUB=ID TYPE=UN G V;
 repeated  monthcat/subject=id type=toep  r ;
lsmeans treat / at month=0 pdiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The /E3 option will show the L vector used to produce the type-3 hypothesis tests. As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt; so eloquently stated, you have to understand what the parameter estimates in the solution vector represent as well. Understanding the GLM parameterization of your class effects helps here, too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this data and model, you get a solution vector (beta) of:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StatsMan_0-1587746709078.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38649i0016B41B648B336D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StatsMan_0-1587746709078.png" alt="StatsMan_0-1587746709078.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The interpretation of these parameters is crucial to understanding your hypothesis tests. Note the 0's in the parameters. They are there by design, a result of using the GLM parameterization of the class effect TREAT. The INTERCEPT estimate here is the effect of TREAT=2. The estimate for TREAT=1 is the difference between TREAT=1 and TREAT=2. The estimate for MONTH is the slope on month for TREAT=2. The estimate for MONTH*TREAT=1 is the difference in the slopes on MONTH for TREAT=1 vs TREAT=2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's look a little more at the parameter estimate for TREAT=1. That estimate is testing the difference between the effect of TREAT=1 vs TREAT=2. You can see that the p-value for this parameter estimate and the p-value for the type-3 test on TREAT:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StatsMan_1-1587747171537.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38650iFCB419F0929A3D4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StatsMan_1-1587747171537.png" alt="StatsMan_1-1587747171537.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, we have an interaction in this model between TREAT and MONTH. Does the presence of that interaction influence how we interpret this test? Yep. Let's look at the result of the /E3 option for the TREAT test:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StatsMan_2-1587748004707.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38663iFA52D00E3B973763/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StatsMan_2-1587748004707.png" alt="StatsMan_2-1587748004707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This test is comparing the two levels of treat, which are actually the intercepts of the two regression lines this model fits. So, at what value of MONTH are we comparing the levels of treat? At MONTH=0! That is probaby not an interesting comparison for the researcher here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the code above, there is an LSMEANS statement that replicates the type-3 test on TREAT. Here is the result of that LSMEANS statement:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StatsMan_3-1587748310484.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38665i287144EABD9FB6A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StatsMan_3-1587748310484.png" alt="StatsMan_3-1587748310484.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The difference in the LSMEANS at MONTH=0 reproduces the type-3 test on TREAT. You can also see that the parameter estimates for TREAT are reproduced from the solution vector. We see the intercept value from the solution vector as the LSMEAN for TREAT=2 and the sum of the intercept and the estimate for TREAT=1 as the LSMEAN for for TREAT=1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the TREAT comparison at MONTH=0 is probably not a very interesting comparison. We can change that month value using the AT option on the LSMEANS statement. Try changing this to AT MONTH=6. Now the output for the LSMEANS statement tests for a difference in the two treatments at month 6:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StatsMan_4-1587748577390.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38666iD08B3C0ACD375BEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StatsMan_4-1587748577390.png" alt="StatsMan_4-1587748577390.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The test here is highly significant, and probably of much more use to the researcher. We can use other month values as well in additional LSMEANS statements to see when the difference in the treatment methods becomes statistically important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the long post!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 17:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642703#M30752</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2020-04-24T17:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting proc mixed  output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642793#M30754</link>
      <description>Thank you so much for this explanation. I get it now!</description>
      <pubDate>Fri, 24 Apr 2020 21:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interpreting-proc-mixed-output/m-p/642793#M30754</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-04-24T21:10:03Z</dc:date>
    </item>
  </channel>
</rss>

