我想计算 R 中 epsilon-squared 效应大小统计的置信区间。这是我用来计算 epsilon-squared 值的代码:
#set up two vectors, a numerical vector and a factor vector (grouping variable)
x=c(3,2,4,7,4,6,9,2,3,4,1,0,8,6,9,5,3,3,6,7,8,2,8,9)
y=as.factor(c(rep("cond1",12),rep("cond2",12)))
#run kruskal-wallis test
kruskal.test(x~y)
library(rcompanion)
df=data.frame(x,y)
#calculate epsilon squared
epsilonSquared(x = df$x,
g = df$y)
这给了我我的效果大小。但该函数只输出一个数字。请问如何计算效果大小的置信区间?