y1 <- c(32, 39, 26, 35, 43, 27, 40, 37, 34, 29)
y2 <- c(36, 44, 47, 42, 49, 39, 46, 31, 33, 48)
ci.ratio.mad2(.05, y1, y2)
# Should return:
# MAD1 MAD2 MAD1/MAD2 LL UL
# 5.111111 5.888889 0.8679245 0.4520879 1.666253
Run the code above in your browser using DataLab