<?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 About how to output the covariance corrected data set. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/979912#M49107</link>
    <description>&lt;P&gt;Dear friends of SAS community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused by how to output the corrected original data set in covariance anlysis using proc mixed. I need the corrected original data for further repeated meassure and factorial analysis, as I carried out the covariance anlysis using one way treatment design, but the experiment is carried out as factorial design with repeated meassure. I believe a slight change of my code should do it. here is my code below:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;DIV&gt;data exercise;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;input trt$ adg iwt; /*iwt is the covariance*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cards;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;hfhs 23.21 38.92&lt;/DIV&gt;&lt;DIV&gt;hfhs 1.18 39.65&lt;/DIV&gt;&lt;DIV&gt;hfhs 8.09 38.8&lt;/DIV&gt;&lt;DIV&gt;hfhs 29.84 39.7&lt;/DIV&gt;&lt;DIV&gt;hfhs 89.89 38.45&lt;/DIV&gt;&lt;DIV&gt;hfhs 5.86 39.61&lt;/DIV&gt;&lt;DIV&gt;hfhs 1.67 39.1&lt;/DIV&gt;&lt;DIV&gt;hfhs 88.98 38.77&lt;/DIV&gt;&lt;DIV&gt;hfhs null null&lt;/DIV&gt;&lt;DIV&gt;hfhs 21.88 39.42&lt;/DIV&gt;&lt;DIV&gt;hfcon 95.81 37.76&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.89 37.68&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.88 38.14&lt;/DIV&gt;&lt;DIV&gt;hfcon 99.67 38.08&lt;/DIV&gt;&lt;DIV&gt;hfcon 99.58 37.42&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.63 37.93&lt;/DIV&gt;&lt;DIV&gt;hfcon 96.74 38.32&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.15 38.1&lt;/DIV&gt;&lt;DIV&gt;hfcon 91.10 38.26&lt;/DIV&gt;&lt;DIV&gt;lfhs 96.03 39.13&lt;/DIV&gt;&lt;DIV&gt;lfhs 59.53 38.98&lt;/DIV&gt;&lt;DIV&gt;lfhs 7.74 38.71&lt;/DIV&gt;&lt;DIV&gt;lfhs 9.92 38.8&lt;/DIV&gt;&lt;DIV&gt;lfhs 93.85 38.44&lt;/DIV&gt;&lt;DIV&gt;lfhs 6.79 38.84&lt;/DIV&gt;&lt;DIV&gt;lfhs 94.77 38.16&lt;/DIV&gt;&lt;DIV&gt;lfhs 6.37 39.18&lt;/DIV&gt;&lt;DIV&gt;lfhs 92.64 38.31&lt;/DIV&gt;&lt;DIV&gt;lfhs 16.74 38.64&lt;/DIV&gt;&lt;DIV&gt;lfcon 95.05 37.7&lt;/DIV&gt;&lt;DIV&gt;lfcon 97.29 38.46&lt;/DIV&gt;&lt;DIV&gt;lfcon 94.11 38.7&lt;/DIV&gt;&lt;DIV&gt;lfcon 98.08 38.88&lt;/DIV&gt;&lt;DIV&gt;lfcon 99.69 38.16&lt;/DIV&gt;&lt;DIV&gt;lfcon 99.62 38.11&lt;/DIV&gt;&lt;DIV&gt;lfcon 82.47 38.44&lt;/DIV&gt;&lt;DIV&gt;lfcon 98.20 37.94&lt;/DIV&gt;&lt;DIV&gt;lfcon 99.66 38.24&lt;/DIV&gt;&lt;DIV&gt;lfcon 98.52 37.95&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc mixed data=exercise covtest;/*check if covariance is significant, the answer is yes*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class trt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;model adg=trt trt*iwt/noint solution;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc mixed data=exercise covtest;/*check if equal slope or not, the answer is yes*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class trt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;model adg=trt iwt trt*iwt/solution;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc mixed data=exercise covtest;/*apply covariacne correction*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class trt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;model adg=trt iwt/solution ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;lsmeans trt/adjust=tukey;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods output diffs=ppp lsmeans=mmm;&lt;/DIV&gt;&lt;DIV&gt;ods listing exclude diffs lsmeans;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;%include'd:\pdmix800.sas';&lt;/DIV&gt;&lt;DIV&gt;%pdmix800(ppp,mmm,alpha=.05,sort=yes);/*apply sas macro*/&lt;/DIV&gt;&lt;DIV&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;I sincerely appreciate all the assistance you are about to offer!&lt;/DIV&gt;</description>
    <pubDate>Wed, 03 Dec 2025 01:36:11 GMT</pubDate>
    <dc:creator>ArthurMa</dc:creator>
    <dc:date>2025-12-03T01:36:11Z</dc:date>
    <item>
      <title>About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/979912#M49107</link>
      <description>&lt;P&gt;Dear friends of SAS community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused by how to output the corrected original data set in covariance anlysis using proc mixed. I need the corrected original data for further repeated meassure and factorial analysis, as I carried out the covariance anlysis using one way treatment design, but the experiment is carried out as factorial design with repeated meassure. I believe a slight change of my code should do it. here is my code below:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;DIV&gt;data exercise;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;input trt$ adg iwt; /*iwt is the covariance*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cards;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;hfhs 23.21 38.92&lt;/DIV&gt;&lt;DIV&gt;hfhs 1.18 39.65&lt;/DIV&gt;&lt;DIV&gt;hfhs 8.09 38.8&lt;/DIV&gt;&lt;DIV&gt;hfhs 29.84 39.7&lt;/DIV&gt;&lt;DIV&gt;hfhs 89.89 38.45&lt;/DIV&gt;&lt;DIV&gt;hfhs 5.86 39.61&lt;/DIV&gt;&lt;DIV&gt;hfhs 1.67 39.1&lt;/DIV&gt;&lt;DIV&gt;hfhs 88.98 38.77&lt;/DIV&gt;&lt;DIV&gt;hfhs null null&lt;/DIV&gt;&lt;DIV&gt;hfhs 21.88 39.42&lt;/DIV&gt;&lt;DIV&gt;hfcon 95.81 37.76&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.89 37.68&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.88 38.14&lt;/DIV&gt;&lt;DIV&gt;hfcon 99.67 38.08&lt;/DIV&gt;&lt;DIV&gt;hfcon 99.58 37.42&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.63 37.93&lt;/DIV&gt;&lt;DIV&gt;hfcon 96.74 38.32&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;hfcon 97.15 38.1&lt;/DIV&gt;&lt;DIV&gt;hfcon 91.10 38.26&lt;/DIV&gt;&lt;DIV&gt;lfhs 96.03 39.13&lt;/DIV&gt;&lt;DIV&gt;lfhs 59.53 38.98&lt;/DIV&gt;&lt;DIV&gt;lfhs 7.74 38.71&lt;/DIV&gt;&lt;DIV&gt;lfhs 9.92 38.8&lt;/DIV&gt;&lt;DIV&gt;lfhs 93.85 38.44&lt;/DIV&gt;&lt;DIV&gt;lfhs 6.79 38.84&lt;/DIV&gt;&lt;DIV&gt;lfhs 94.77 38.16&lt;/DIV&gt;&lt;DIV&gt;lfhs 6.37 39.18&lt;/DIV&gt;&lt;DIV&gt;lfhs 92.64 38.31&lt;/DIV&gt;&lt;DIV&gt;lfhs 16.74 38.64&lt;/DIV&gt;&lt;DIV&gt;lfcon 95.05 37.7&lt;/DIV&gt;&lt;DIV&gt;lfcon 97.29 38.46&lt;/DIV&gt;&lt;DIV&gt;lfcon 94.11 38.7&lt;/DIV&gt;&lt;DIV&gt;lfcon 98.08 38.88&lt;/DIV&gt;&lt;DIV&gt;lfcon 99.69 38.16&lt;/DIV&gt;&lt;DIV&gt;lfcon 99.62 38.11&lt;/DIV&gt;&lt;DIV&gt;lfcon 82.47 38.44&lt;/DIV&gt;&lt;DIV&gt;lfcon 98.20 37.94&lt;/DIV&gt;&lt;DIV&gt;lfcon 99.66 38.24&lt;/DIV&gt;&lt;DIV&gt;lfcon 98.52 37.95&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc mixed data=exercise covtest;/*check if covariance is significant, the answer is yes*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class trt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;model adg=trt trt*iwt/noint solution;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc mixed data=exercise covtest;/*check if equal slope or not, the answer is yes*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class trt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;model adg=trt iwt trt*iwt/solution;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc mixed data=exercise covtest;/*apply covariacne correction*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class trt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;model adg=trt iwt/solution ;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;lsmeans trt/adjust=tukey;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods output diffs=ppp lsmeans=mmm;&lt;/DIV&gt;&lt;DIV&gt;ods listing exclude diffs lsmeans;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;%include'd:\pdmix800.sas';&lt;/DIV&gt;&lt;DIV&gt;%pdmix800(ppp,mmm,alpha=.05,sort=yes);/*apply sas macro*/&lt;/DIV&gt;&lt;DIV&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;I sincerely appreciate all the assistance you are about to offer!&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Dec 2025 01:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/979912#M49107</guid>
      <dc:creator>ArthurMa</dc:creator>
      <dc:date>2025-12-03T01:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980384#M49126</link>
      <description>&lt;P&gt;I have never used the %PDMIX800 macro, but you can use PROC PLM and the LSMEANS statement to get a graphical display that reveals which treatment effects are significantly different. Here is the code for your example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=exercise covtest;/*apply covariacne correction*/
   class trt;
   model adg=trt iwt/solution ;
   store out=mixedout;
run;

ods graphics on;
proc plm restore=mixedout;
   lsmeans trt/ pdiff=all adjust=tukey linestable;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output includes a &lt;A href="https://blogs.sas.com/content/iml/2017/10/18/diffogram-multiple-comparisons-sas.html" target="_self"&gt;diffogram&lt;/A&gt;&amp;nbsp;by default. The LINESTABLE option produces a table with letters that show which effects are significantly different.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 15:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980384#M49126</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2025-12-08T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980385#M49127</link>
      <description>&lt;P&gt;I am not sure you mean by covariance corrected original data. Can you please clarify?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 15:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980385#M49127</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-12-08T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980427#M49129</link>
      <description>&lt;P&gt;In covariance analysis, there were original data (adg) and covariance (iwt), after we gave SAS those data, SAS would calculate if covariance (iwt) significantly influenced the out come&amp;nbsp;original data (adg) or not, in my case, it's yes. Then SAS would provide an equation (Like linear regression) to calculate the covariance corrected data(it is more accurate for further analysis), and those&amp;nbsp;corrected data would be used for the final anova and tukey test. I was trying to get the&amp;nbsp;corrected data because my experiment requires repeated meassure, but using the equation to calculate myself would be really hard, since SAS would use the corrected data for the final analysis, I think SAS is capable of outputting the corrected data.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 04:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980427#M49129</guid>
      <dc:creator>ArthurMa</dc:creator>
      <dc:date>2025-12-09T04:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980428#M49130</link>
      <description>&lt;P&gt;Thank you for your reply and introducing me proc PLM, but it wasn't really what I was confused of. I have clarified my concerns below, please check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In covariance analysis, there were original data (adg) and covariance (iwt), after we gave SAS those data, SAS would calculate if covariance (iwt) significantly influenced the out come original data (adg) or not, in my case, it's yes. Then SAS would provide an equation (Like linear regression) to calculate the covariance corrected data(it is more accurate for further analysis), and those corrected data would be used for the final anova and tukey test. I was trying to get the corrected data because my experiment requires repeated meassure, but using the equation to calculate myself would be really hard, since SAS would use the corrected data for the final analysis, I think SAS is capable of outputting the corrected data.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 04:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980428#M49130</guid>
      <dc:creator>ArthurMa</dc:creator>
      <dc:date>2025-12-09T04:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980493#M49131</link>
      <description>&lt;P&gt;For repeated measures data, you can use PROC MIXED/PROC GLIMMIX to model the covariance in the data, and the tests for the fixed effects would account for the covariance. This is done in one-step in these procedures. You do not need to have so called covariance corrected original data then use that for subsequent ANOVA analysis.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 15:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980493#M49131</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2025-12-09T15:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: About how to output the covariance corrected data set.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980495#M49132</link>
      <description>Thank you for your reply, it means a lot. I am starting to understand those.</description>
      <pubDate>Tue, 09 Dec 2025 15:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/About-how-to-output-the-covariance-corrected-data-set/m-p/980495#M49132</guid>
      <dc:creator>ArthurMa</dc:creator>
      <dc:date>2025-12-09T15:32:03Z</dc:date>
    </item>
  </channel>
</rss>

