[英]How can I run post-hoc tests for a significant interaction in Two-Way Mixed ANOVA with the correct (within subjects) error term in R?
[英]In R studio I receive an error for a post hoc test TukeyHSD for a two-way ANOVA with an interaction
这是我输入的所有内容和 output。
two.way <- aov(Facefactor ~ Teamsport + College + College:Teamsport, data = Male_Data_R_Face_Factor)
summary(two.way)
Df Sum Sq Mean Sq F value Pr(>F)
Teamsport 1 0.29 0.2860 0.343 0.559
College 1 0.05 0.0541 0.065 0.799
Teamsport:College 1 1.05 1.0538 1.262 0.263
Residuals 206 171.99 0.8349
TukeyHSD(two.way)
TukeyHSD.aov(two.way)中的错误:安装的 model 中没有因素此外:警告消息:1:在复制中(粘贴(“~”,xx),数据 = mf):非因素被忽略:Teamsport 2:在复制中(粘贴(“~”,xx),数据 = mf):忽略非因素:大学 3:在复制中(粘贴(“~”,xx),数据 = mf):忽略非因素:团队运动,大学
确保您的因素是因素:将此代码放在 aov 之前。
Male_Data_R_Face_Factor <- within(Male_Data_R_Face_Factor, {
Teamsport <- factor(Teamsport)
College <- factor(College)
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.