I want to calculate the confidence interval around the median obtained from this data set:
dat <- c(2.10, 2.35, 2.35, 3.10, 3.10, 3.15, 3.90, 3.90, 4.00, 4.80, 5.00, 5.00, 5.15, 5.35, 5.50, 6.00, 6.00, 6.25, 6.45)
The descriptive statistics:
summary(dat)
Min. 1st Qu. Median Mean 3rd Qu. Max.
2.100 3.125 4.800 4.392 5.425 6.450
I cannot find how the confidence interval that is presented together with the wilcoxon test results is calculated:
wilcox.test(dat, conf.int = T, correct = T, exact = F, conf.level = .99)
Wilcoxon signed rank test with continuity correction
data: dat
V = 190, p-value = 0.0001419
alternative hypothesis: true location is not equal to 0
99 percent confidence interval:
3.450018 5.499933
sample estimates:
(pseudo)median
4.400028
I just want to estimate the median of the population with a confidence interval using a non-parametric method. How the confidence interval shown above is related to the Wilcoxon signed rank test?