<?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 Comparison proc glm and proc mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/820883#M40605</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to compare PROC GLM and PROC MIXED for one model and I was wondering if it was possible to get the correspondance of "covtest" in proc mixed with the prog glm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model with proc mixed is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=ADPP covtest cl method=type3 alpha=0.1;&lt;BR /&gt;by PARAMN PARAMCD;&lt;BR /&gt;class TRTAN SEX USUBJID;&lt;BR /&gt;model AVAL = TRTAN SEX / solution ddfm=kr;&lt;BR /&gt;random USUBJID(SEX) / type=vc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model with prog glm is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=ADPP ;&lt;BR /&gt;class TRTAN SEX USUBJID;&lt;BR /&gt;model AVAL = TRTAN SEX USUBJID(SEX) ;&lt;BR /&gt;random USUBJID(SEX) / test ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtain the same Mean Squares with the two models but with the proc GLM I don't have the covariance parameters with the interval of confidence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is-it possible to obtain these parameters with the proc glm ? If yes, how I can get them ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards;&lt;/P&gt;&lt;P&gt;Clg&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 10:25:45 GMT</pubDate>
    <dc:creator>Clg</dc:creator>
    <dc:date>2022-06-29T10:25:45Z</dc:date>
    <item>
      <title>Comparison proc glm and proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/820883#M40605</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to compare PROC GLM and PROC MIXED for one model and I was wondering if it was possible to get the correspondance of "covtest" in proc mixed with the prog glm?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model with proc mixed is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=ADPP covtest cl method=type3 alpha=0.1;&lt;BR /&gt;by PARAMN PARAMCD;&lt;BR /&gt;class TRTAN SEX USUBJID;&lt;BR /&gt;model AVAL = TRTAN SEX / solution ddfm=kr;&lt;BR /&gt;random USUBJID(SEX) / type=vc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model with prog glm is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=ADPP ;&lt;BR /&gt;class TRTAN SEX USUBJID;&lt;BR /&gt;model AVAL = TRTAN SEX USUBJID(SEX) ;&lt;BR /&gt;random USUBJID(SEX) / test ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtain the same Mean Squares with the two models but with the proc GLM I don't have the covariance parameters with the interval of confidence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is-it possible to obtain these parameters with the proc glm ? If yes, how I can get them ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards;&lt;/P&gt;&lt;P&gt;Clg&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 10:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/820883#M40605</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2022-06-29T10:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison proc glm and proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/820900#M40608</link>
      <description>&lt;P&gt;From the PROC GLM documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.glm.glmrandom" class="aa-section"&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/SPAN&gt;: PROC GLM uses only the information pertaining to expected mean squares when you specify the &lt;A href="http://127.0.0.1:56228/help/statug.hlp/statug_glm_syntax19.htm#statug.glm.rand_opt_test" target="_blank"&gt;TEST&lt;/A&gt; option in the RANDOM statement and, even then, only in the extra &lt;SPAN class=" aa-mathtext"&gt;F&lt;/SPAN&gt; tests produced by the RANDOM statement. Other features in the GLM procedure—including the results of the &lt;A href="http://127.0.0.1:56228/help/statug.hlp/statug_glm_syntax10.htm" target="_blank"&gt;LSMEANS&lt;/A&gt; and &lt;A href="http://127.0.0.1:56228/help/statug.hlp/statug_glm_syntax07.htm" target="_blank"&gt;ESTIMATE&lt;/A&gt; statements—assume that all effects are fixed, so that all tests and estimability checks for these statements are based on a fixed-effects model, even when you use a RANDOM statement. Therefore, you should use the MIXED procedure &lt;A class="indexterm" name="statug.glm.a0000000509" target="_blank"&gt;&lt;/A&gt; to compute tests involving these features that take the random effects into account; see the section &lt;A href="http://127.0.0.1:56228/help/statug.hlp/statug_glm_details55.htm#statug.glm.glmranmix" target="_blank"&gt;PROC GLM versus PROC MIXED for Random-Effects Analysis&lt;/A&gt; and &lt;A href="http://127.0.0.1:56228/help/statug.hlp/statug_mixed_toc.htm" target="_blank"&gt;Chapter&amp;nbsp;81: The MIXED Procedure&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This applies to interval estimates as well, so that GLM doesn't produce CI's as you might think of them.&amp;nbsp; I thought you might be able to add the CLPARMS and SOLUTION options to the MODEL statement and get something, but that appears to give CI's for each level of the effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess this all boils down to "Don't use PROC GLM for this particular task.&amp;nbsp; Use PROC MIXED."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Jun 2022 12:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/820900#M40608</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-06-29T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison proc glm and proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/821066#M40612</link>
      <description>&lt;P&gt;Thnak you for your answer.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 07:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/821066#M40612</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2022-06-30T07:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison proc glm and proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/821116#M40621</link>
      <description>I think it is not possible. As Steve said, PROC GLM is for fixed effect model,PROC MIXED is for mixed effect model . Since COVTEST is a   test for mixed effect (is signifcant or not), there is no reason to use PROC GLM .</description>
      <pubDate>Thu, 30 Jun 2022 12:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparison-proc-glm-and-proc-mixed/m-p/821116#M40621</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-30T12:25:46Z</dc:date>
    </item>
  </channel>
</rss>

