我运行以下R命令进行Dunnett测试并获得摘要.如何访问下面的线性假设的每一行,这是摘要输出的一部分?基本上我不知道摘要的结构.我尝试使用names()但似乎没有工作,因为我没有看到任何命名属性给出.
library("multcomp")
Group <- factor(c("A","A","B","B","B","C","C","C","D","D","D","E","E","F","F","F"))
Value <- c(5,5.09901951359278,4.69041575982343,4.58257569495584,4.79583152331272,5,5.09901951359278,4.24264068711928,5.09901951359278,5.19615242270663,4.58257569495584,6.16441400296898,6.85565460040104,7.68114574786861,7.07106781186548,6.48074069840786)
data <- data.frame(Group, Value)
fit <- aov(Value ~ Group, data)
set.seed(20140123)
Dunnet <- glht(fit, linfct=mcp(Group="Dunnett"))
summary(Dunnet)
Simultaneous Tests for General Linear Hypotheses
Multiple Comparisons of Means: Dunnett Contrasts
Fit: aov(formula = Value ~ Group, data = data)
Linear Hypotheses:
Estimate Std. Error t value Pr(>|t|)
B - A == 0 -0.35990 0.37009 -0.972 0.76536
C - A == 0 -0.26896 0.37009 -0.727 0.90012
D - A == 0 -0.09026 0.37009 -0.244 0.99895 …Run Code Online (Sandbox Code Playgroud)