<?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: Finding sum of squares in Proc Mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795863#M39098</link>
    <description>Is there a known procedure or formula that Proc mixed uses to calculate the F values?</description>
    <pubDate>Sat, 12 Feb 2022 18:27:41 GMT</pubDate>
    <dc:creator>Lyson</dc:creator>
    <dc:date>2022-02-12T18:27:41Z</dc:date>
    <item>
      <title>Finding sum of squares in Proc Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795484#M39039</link>
      <description>&lt;P&gt;How do I set sum of squares in Type III analysis of variance when dealing with a Repeated Measures design, having set the data in "long format" as required by SAS Proc Mixed procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have am aware that it can be done in Proc GLM but my challenge is when dealing with fixed and random between-subjects factors which require strictly the Proc Mixed procedure. Furthermore, I have come accross and am aware of the fact that (SAS User Guide 2017):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The 'Type 3 Tests of Fixed Effects' table in Figure 56.7 displays&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;significance tests for the three effects listed in the MODEL&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;statement. The Type 3 F statistics and p-values are the same as those&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;produced by the GLM procedure. However, because PROC MIXED uses a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;likelihood-based estimation scheme, it does not directly compute or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;display sums of squares for this analysis."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example SAS Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;proc mixed data=LDH_univ method=reml covtest;&lt;BR /&gt;&lt;BR /&gt;class CCI4 CHCI3  Time Flask ;&lt;BR /&gt;&lt;BR /&gt;model Leakage=CCI4 CHCI3  CCI4*CHCI3 Time CCI4*Time CHCI3*Time CCI4*CHCI3*Time;&lt;BR /&gt;repeated Time  / subject=Flask  type=cs;&lt;BR /&gt;lsmeans CCI4 / pdiff cl adjust=tukey;&lt;BR /&gt;lsmeans CHCI3 / pdiff cl adjust=tukey;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAS Proc Mixed output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lyson_0-1644501985810.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68360iDB69CDBFB6CC1E89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lyson_0-1644501985810.png" alt="Lyson_0-1644501985810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way of populating the sum of squares in Proc Mixed without going the Proc GLM route which is not appropriate for random factors?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 14:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795484#M39039</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2022-02-10T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding sum of squares in Proc Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795488#M39040</link>
      <description>&lt;P&gt;I don't think PROC MIXED computes sums of squares, because this is not what PROC MIXED is trying to optimize when fitting the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see this discussion (particularly the comments from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-R-Squared/m-p/637361" target="_blank"&gt;Solved: Proc Mixed - R-Squared - SAS Support Communities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 14:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795488#M39040</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-10T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Finding sum of squares in Proc Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795501#M39042</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much. I am following the discussion. I have already started to pick some useful facts from the discussion. I do appreciate your assistance and the team's deliberations. Thank you all&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795501#M39042</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2022-02-10T15:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding sum of squares in Proc Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795863#M39098</link>
      <description>Is there a known procedure or formula that Proc mixed uses to calculate the F values?</description>
      <pubDate>Sat, 12 Feb 2022 18:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/795863#M39098</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2022-02-12T18:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding sum of squares in Proc Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/796064#M39114</link>
      <description>&lt;P&gt;Check the documentation: Details:Mixed Procedure&amp;gt;Mixed Models Theory&amp;gt;Inference and Test Statistics.&amp;nbsp; How the F statistic is calculated using the matrix formula that doesn't copy well into this box.&amp;nbsp; It is basically this:&amp;nbsp; define &lt;STRONG&gt;param&lt;/STRONG&gt; as the vector of fixed effects and random effects, &lt;STRONG&gt;L&lt;/STRONG&gt;&amp;nbsp;is a matrix that encodes the estimable linear combinations that constitute the F test, &lt;STRONG&gt;Chat&amp;nbsp;&lt;/STRONG&gt;is the estimated variance-covariance matrix, and r is the rank of &lt;STRONG&gt;LChatL' .&amp;nbsp;&lt;/STRONG&gt;Then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;F= &lt;STRONG&gt;param'L'inverse((LChatL'))Lparam&lt;/STRONG&gt;/r&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 14:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/796064#M39114</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-02-14T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding sum of squares in Proc Mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/796103#M39123</link>
      <description>&lt;P&gt;Yes I got it. Thanks Steve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 18:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Finding-sum-of-squares-in-Proc-Mixed/m-p/796103#M39123</guid>
      <dc:creator>Lyson</dc:creator>
      <dc:date>2022-02-14T18:19:27Z</dc:date>
    </item>
  </channel>
</rss>

