sophiayama
各位老师,我想请教一下如果应用协方差分析(two factors and one covariate)的步骤。
以下是我的分析步骤:
1. Test for normality and homogeneity of variance for Y (dependent variable).
2. make sure that the facor(independent variable) doe not influence X(covariate)
3. Test whether the covariate has the same slope for each group in factors
4. if all the 3 assumptions are meeted, use "proc glm" in SAS to do the ancova.
我对分析的步骤不是很有自信,请各位指点正确步骤。也有一些疑问。例如,第一步进行常态检验和齐方差检验时,是针对raw data来做的,但是我看到很多资料中是先建立ancova model, 再检查residual 的正态性。 到底哪种做法更合适呢? 还有,如果不满足第三步的equity of slope的检验,接下来该用什么方法来分析数据呢。
先谢谢各位的阅读指点啦。
混此一生
1. 关于第一步,关于Y 可以考虑两方面,(1) 如果你的样本足够大的话 比如 n>=30,那么根据 Central Limit Theorem, 我们可以直接应用Y。(2)如果样本数很小,则可以考虑 transformation. 然后应用的数据 tranform。
2. 第二步,第三步,没什么问题,最好run full model 和 reduced model 然后用 F test
3. 如果用 SAS GLM 还要注意你的data 有没有 missing value 或者 single value. 在这一步你可以检验 if there is an interaction effects between the two main factors. If yes then you would like to design and perform Tukey multiple comparison.
if there is no interaction effects, then turn to test the main effects. According to your results you can drop one main factor or create a megafactor to run a one way ANOVA.
4. 不过最重要的还是要看你的 experiments 是如何design 的, 如果有random 你最好用 sas proc mixed。
5. 你说的 “但是我看到很多资料中是先建立ancova model, 再检查residual 的正态性。”这一步是无论如何都要做的,这是在检验你的model。 一定要做。