library(DGB)

Ratio of Medians from Paired Samples

ci.ratio.median.ps

Computes confidence interval for a ratio 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: - medians, median ratio, 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.ratio.median.ps(alpha, y1, y2)


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