docs/median.ps.md

Median Difference from Paired Samples

ci.median.ps

Computes confidence interval for a difference of population medians in a 2-level within-subjects design.

Arguments: - alpha: alpha level for 1-alpha confidence - y1: vector of scores for level 1 - y2: vector of scores for level 2 Values: - sample medians, SE of difference, lower limit, upper limit

alpha = .05
y1 = c(21, 4, 9, 12, 35, 18, 10, 22, 24, 1, 6, 8, 13, 16, 19)
y2 = c(67, 28, 30, 28, 52, 40, 25, 37, 44, 10, 14, 20, 28, 40, 51)
ci.median.ps(alpha, y1, y2)
##      Median1 Median2 Median1-Median2       SE        LL        UL
## [1,]      13      30             -17 1.970661 -20.86243 -13.13757


cwendorf/dgb documentation built on May 3, 2022, 9:35 p.m.