<?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 Proc Mixed model statement - the order of covariates affect the standard error estimates? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445515#M23364</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently I was running sas proc mixed to validate my counterpart's results. Below is the statement I used (-note, 'Base' in the model statement):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=&lt;SPAN&gt;indata&lt;/SPAN&gt;&amp;nbsp;method=reml;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;class TRTPN(ref='1') SITEGR1 AVISITN SUBJID;&lt;BR /&gt;model CHG = &lt;FONT color="#FF0000"&gt;BASE&lt;/FONT&gt;&amp;nbsp; TRTPN SITEGR1 AVISITN TRTPN*AVISITN&amp;nbsp; / DDFM=KENWARDROGER;&lt;BR /&gt;repeated AVISITN / type=un sub=SUBJID;&lt;BR /&gt;lsmeans trtpn*avisitn/pdiff cl ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My counterpart runs like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=indata method=reml;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;class TRTPN(ref='1') SITEGR1 AVISITN SUBJID;&lt;BR /&gt;model CHG =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;TRTPN SITEGR1 AVISITN TRTPN*AVISITN&amp;nbsp;&amp;nbsp;&lt;FONT color="#FF0000"&gt;BASE&lt;/FONT&gt;&amp;nbsp; / DDFM=KENWARDROGER;&lt;BR /&gt;repeated AVISITN / type=un sub=SUBJID;&lt;BR /&gt;lsmeans trtpn*avisitn/pdiff cl ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Surprisingly, the standard error estimates from the lsmeans statement are quite different.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Take one example:&lt;/P&gt;&lt;P&gt;mean (SE) for model-adjusted means for one visit of one treatment group:&lt;/P&gt;&lt;P&gt;9.78 (4.896)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.78 (2.150)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The adjusted means are the same but the standard errors change a lot; and the standard error values depend on the location/order of the covariates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand why. Am i doing something wrong or the variance-covariance changes with the order of the covariates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks all.&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;&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>Wed, 14 Mar 2018 15:36:30 GMT</pubDate>
    <dc:creator>simonli</dc:creator>
    <dc:date>2018-03-14T15:36:30Z</dc:date>
    <item>
      <title>Proc Mixed model statement - the order of covariates affect the standard error estimates?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445515#M23364</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently I was running sas proc mixed to validate my counterpart's results. Below is the statement I used (-note, 'Base' in the model statement):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=&lt;SPAN&gt;indata&lt;/SPAN&gt;&amp;nbsp;method=reml;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;class TRTPN(ref='1') SITEGR1 AVISITN SUBJID;&lt;BR /&gt;model CHG = &lt;FONT color="#FF0000"&gt;BASE&lt;/FONT&gt;&amp;nbsp; TRTPN SITEGR1 AVISITN TRTPN*AVISITN&amp;nbsp; / DDFM=KENWARDROGER;&lt;BR /&gt;repeated AVISITN / type=un sub=SUBJID;&lt;BR /&gt;lsmeans trtpn*avisitn/pdiff cl ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My counterpart runs like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=indata method=reml;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;class TRTPN(ref='1') SITEGR1 AVISITN SUBJID;&lt;BR /&gt;model CHG =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;TRTPN SITEGR1 AVISITN TRTPN*AVISITN&amp;nbsp;&amp;nbsp;&lt;FONT color="#FF0000"&gt;BASE&lt;/FONT&gt;&amp;nbsp; / DDFM=KENWARDROGER;&lt;BR /&gt;repeated AVISITN / type=un sub=SUBJID;&lt;BR /&gt;lsmeans trtpn*avisitn/pdiff cl ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Surprisingly, the standard error estimates from the lsmeans statement are quite different.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Take one example:&lt;/P&gt;&lt;P&gt;mean (SE) for model-adjusted means for one visit of one treatment group:&lt;/P&gt;&lt;P&gt;9.78 (4.896)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.78 (2.150)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The adjusted means are the same but the standard errors change a lot; and the standard error values depend on the location/order of the covariates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand why. Am i doing something wrong or the variance-covariance changes with the order of the covariates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks all.&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;&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>Wed, 14 Mar 2018 15:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445515#M23364</guid>
      <dc:creator>simonli</dc:creator>
      <dc:date>2018-03-14T15:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed model statement - the order of covariates affect the standard error estimates?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445559#M23366</link>
      <description>&lt;P&gt;Do you get the same&amp;nbsp;problem when asking for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:50059/help/statug.hlp/statug_mixed_syntax10.htm#statug.mixed.modelstmt_ddfm" target="_blank"&gt;DDFM=&lt;/A&gt;KENWARDROGER2&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 17:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445559#M23366</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-03-14T17:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed model statement - the order of covariates affect the standard error estimates?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445702#M23367</link>
      <description>&lt;P&gt;Yes; I tried to use &lt;A href="http://127.0.0.1:50059/help/statug.hlp/statug_mixed_syntax10.htm#statug.mixed.modelstmt_ddfm" target="_blank" rel="nofollow noopener noreferrer"&gt;DDFM=&lt;/A&gt;&lt;SPAN&gt;KENWARDROGER2 and the problem is the same. Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 02:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/445702#M23367</guid>
      <dc:creator>simonli</dc:creator>
      <dc:date>2018-03-15T02:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed model statement - the order of covariates affect the standard error estimates?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/446219#M23376</link>
      <description>&lt;P&gt;Just want to add one more piece of information: I have tried the same model to generate multiple tables for different endpoints - it is odd that only one single table that had such problem: the order of the 'Base' in the model statement changed the standard error. All other tables had no difference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-model-statement-the-order-of-covariates-affect-the/m-p/446219#M23376</guid>
      <dc:creator>simonli</dc:creator>
      <dc:date>2018-03-16T15:34:47Z</dc:date>
    </item>
  </channel>
</rss>

