存储在一列data.frame中的向量间的t检验矩阵
我有一个data.frame,有两列。一个指定类型,另一个指定与该类型关联的性能存储在一列data.frame中的向量间的t检验矩阵,r,dplyr,t-test,R,Dplyr,T Test,我有一个data.frame,有两列。一个指定类型,另一个指定与该类型关联的性能 DF <- data.frame(type = c(rep("A",25), rep("B",25),rep("C",25), rep("D",25)), performance = runif(100)) DF希望我的回答是正确的,您可以使用stats中的pairwise.t.test(它随R安装而来): PWT = pairwise.t.test(DF$performa
DF <- data.frame(type = c(rep("A",25), rep("B",25),rep("C",25), rep("D",25)),
performance = runif(100))
DF希望我的回答是正确的,您可以使用stats中的pairwise.t.test(它随R安装而来):
PWT = pairwise.t.test(DF$performance,DF$type,p.adjust.method = "none")
PWT$p.value