期刊有时会报告带有附加后缀或上标的方法,其中不共享后缀的方法在统计上有所不同。例如,在Xa,Yab,Zb中,X与Z不同,而Y与X和Z都没有区别。在这里您可以看到详细的描述:http://www.jerrydallal.com/lhsp/similar.htm 我有两个问题: 1.有一个R包可以处理吗? 2.如果没有,写一个函数有多难?我花了几个小时,但找不到一个简单的解决方案,但我可能会遗漏一些东西。 谢谢!
答案 0 :(得分:0)
搜索似乎并不那么困难。也许你应该花更多的时间学习搜索R相关问题的方法:
> findFn("Tukey HSD") # function from 'sos' package
found 36 matches; retrieving 2 pages
2
Downloaded 29 links in 17 packages.
> library(agricolae)
> data(sweetpotato)
> model<-aov(yield~virus, data=sweetpotato)
> out <- HSD.test(model,"virus", group=TRUE,console=TRUE,
+ main="Yield of sweetpotato\nDealt with different virus")
Study: Yield of sweetpotato
Dealt with different virus
HSD Test for yield
Mean Square Error: 22.48917
virus, means
yield std r Min Max
cc 24.40000 3.609709 3 21.7 28.5
fc 12.86667 2.159475 3 10.6 14.9
ff 36.33333 7.333030 3 28.0 41.8
oo 36.90000 4.300000 3 32.1 40.4
alpha: 0.05 ; Df Error: 8
Critical Value of Studentized Range: 4.52881
Honestly Significant Difference: 12.39967
Means with the same letter are not significantly different.
Groups, Treatments and means
a oo 36.9
ab ff 36.33
bc cc 24.4
c fc 12.87