Dear friends of SAS community
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:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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:
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;
The output includes a diffogram by default. The LINESTABLE option produces a table with letters that show which effects are significantly different.
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.
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.
I am not sure you mean by covariance corrected original data. Can you please clarify?
Thanks,
Jill
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.
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.
Thanks,
Jill
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.