<?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: proc mixed: why different P value from the solution for fixed effects and estimate table in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775158#M37936</link>
    <description>&lt;P&gt;It might be that be setting group 4 to be the reference, that the indexing gets shifted such that your ESTIMATE statements are now messed up somehow.&amp;nbsp; Try adding the 'E' option to print out the &lt;STRONG&gt;L&amp;nbsp;&lt;/STRONG&gt;matrix.&amp;nbsp; The other thing to recall is that the estimate statement combines multiple entries from the solution vector to calculate the estimates, so there may be some small differences in the estimated value, and certainly some differences in the standard error, which in the estimate is a standard error of a linear combination of the parameters, and so should be a bit larger. This will affect the t values and thus the associated p values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 15:55:37 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-10-19T15:55:37Z</dc:date>
    <item>
      <title>proc mixed: why there are different  estimate and P from "solution for fixed effects" and "estimate"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775089#M37930</link>
      <description>&lt;P&gt;I am analysing the slope of one continuous_variable during follow-up across groups.&lt;/P&gt;
&lt;P&gt;In the following code, t=fu_year.&lt;/P&gt;
&lt;P&gt;I used PROC MIXED. In the procedure, I used ESTIMATE to calculate the difference between slopes of the corresponding group and the reference group (group 4 here).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-indent-padding-left-90px"&gt;&lt;BR /&gt;&lt;BR /&gt;                                  proc mixed data=dataset  order=formatted  PLOTS(MAXPOINTS= 100000);
                  
                                          class t group (ref='4');
                                          model continuous_var=fu_year group group*fu_year/ solution ddfm=kr;
                                          repeated t /subject=projid_mixed type=un;
   estimate "slope difference for group 1, ref=group4" fu_year 0 group*fu_year 1 0 0 -1 0 0/cl;&lt;BR /&gt;estimate "slope difference for group 2, ref=group4" fu_year 0 group*fu_year 0 1 0 -1 0 0/cl; &lt;BR /&gt;estimate "slope difference for group 3, ref=group4" fu_year 0 group*fu_year 0 0 1 -1 0 0/cl;&lt;BR /&gt;estimate "slope difference for group 5, ref=group4" fu_year 0 group*fu_year 0 0 0 -1 1 0/cl; &lt;BR /&gt;estimate "slope difference for group 6, ref=group4" fu_year 0 group*fu_year 0 0 0 -1 0 1/cl; 
                                  run; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The point estimate is supposed to be same from the table named&amp;nbsp;"solution for fixed effects"&amp;nbsp; and the table named "estimate".&lt;/P&gt;
&lt;P&gt;however, my results varied in these two tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the "solution for fixed effects"&lt;/P&gt;
&lt;P&gt;Group 1,2,3 have a significantly faster decline (fu_year*group)&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;over time than group 4 .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_0-1634646149683.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64839i62A88D4DA90A5491/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_0-1634646149683.png" alt="Jie111_0-1634646149683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in the table for Estimate, both the estimate and the P-value changed. Is anyone know why the estimates were different between those two tables? Is this normal?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_1-1634646267178.png" style="width: 485px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64840iA161246FEB04A678/image-dimensions/485x194?v=v2" width="485" height="194" role="button" title="Jie111_1-1634646267178.png" alt="Jie111_1-1634646267178.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 06:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775089#M37930</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2021-10-20T06:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775146#M37934</link>
      <description>&lt;P&gt;It often helps if you point out the specific values of concern by referencing a row label or similar and the specific statistic or column heading &lt;STRONG&gt;in both sources&lt;/STRONG&gt; so we can tell what you are looking at and questioning, or pick a single instance for discussion of differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775146#M37934</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-19T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775158#M37936</link>
      <description>&lt;P&gt;It might be that be setting group 4 to be the reference, that the indexing gets shifted such that your ESTIMATE statements are now messed up somehow.&amp;nbsp; Try adding the 'E' option to print out the &lt;STRONG&gt;L&amp;nbsp;&lt;/STRONG&gt;matrix.&amp;nbsp; The other thing to recall is that the estimate statement combines multiple entries from the solution vector to calculate the estimates, so there may be some small differences in the estimated value, and certainly some differences in the standard error, which in the estimate is a standard error of a linear combination of the parameters, and so should be a bit larger. This will affect the t values and thus the associated p values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775158#M37936</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-10-19T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775164#M37937</link>
      <description>sorry for that. I revised the question. Hope it is clear now.</description>
      <pubDate>Tue, 19 Oct 2021 16:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775164#M37937</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2021-10-19T16:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775165#M37938</link>
      <description>Thank you Steve Denham. I check the L matrix, in the estimate, I also used group 4 as the reference group. Is the different estimate and P-value normal?</description>
      <pubDate>Tue, 19 Oct 2021 16:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775165#M37938</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2021-10-19T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775172#M37939</link>
      <description>&lt;P&gt;Show us the L-matrix.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 16:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775172#M37939</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-19T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775179#M37940</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;
&lt;P&gt;Here are the results.&lt;/P&gt;
&lt;P&gt;I add E in the model function.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_0-1634663564793.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64855iDFA7335BED7B7716/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_0-1634663564793.png" alt="Jie111_0-1634663564793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_1-1634663576818.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64856i1105FB9614FC6AEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_1-1634663576818.png" alt="Jie111_1-1634663576818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 17:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775179#M37940</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2021-10-19T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775190#M37941</link>
      <description>&lt;P&gt;I am skeptical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you show does not and cannot produce the second output that you show in your original message. The second output says "Slope for BMI trajectories" but there is no such thing in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to me the most likely explanation is that the screen captures in your original message are not from the same run of the code, and therefore don't have to match.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 18:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775190#M37941</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-19T18:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775331#M37951</link>
      <description>I rerun it with excluding the (ref='4') and got the same estimates and P value.&lt;BR /&gt;&lt;BR /&gt;class t group (ref='4'); --&amp;gt; class t group;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2021 08:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775331#M37951</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2021-10-20T08:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why different P value from the solution for fixed effects and estimate table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775353#M37952</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254866"&gt;@Jie111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I rerun it with excluding the (ref='4') and got the same estimates and P value.&lt;BR /&gt;&lt;BR /&gt;class t group (ref='4'); --&amp;gt; class t group;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, I think this is expected. It's the same model whether your use (ref='4') or not.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 10:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775353#M37952</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-20T10:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc mixed: why there are different  estimate and P from "solution for fixed effects"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775408#M37955</link>
      <description>&lt;P&gt;The (ref='4') option in the CLASS statement essentially puts 4 as the last level for GROUP. So in your ESTIMATE statement, you should put -1 as the last coefficient (the 6th one) --&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;estimate "slope difference for group 1, ref=group4" fu_year 0 group*fu_year 1 0 0 0 0 -1 /cl;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 14:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-mixed-why-there-are-different-estimate-and-P-from-quot/m-p/775408#M37955</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-10-20T14:13:37Z</dc:date>
    </item>
  </channel>
</rss>

