Dear all,
I don't know how to find the confidence intervals for mean and median for non-normal groups with R, as shown below, kruskal.test() function does not offer the confidence interval, also it works for mean CI, and Wilcox.test() works just for the binary group and offer just median CI. Could anyone help and thanks in advance?
set.seed (1)
group = rep(c('A','B','C','D'), 100)
y = rnorm (400 , 100 , 15) + 10*( group == 'B') + 20*( group == 'C') + 30*( group == 'D')
kruskal.test(group~y)
Kruskal-Wallis rank sum test
data: group by y
Kruskal-Wallis chi-squared = 399, df = 399, p-value = 0.4906