docs/lc.median.ws.md

Linear Contrast of Medians (Within Subjects)

ci.lc.median.ws

Computes a confidence interval for a linear function of within-subject medians.

Args: - alpha: alpha value for 1-alpha confidence - m: rx1 vector of sample medians for within-subject conditions - h: rx1 vector coefficients of linear function - V: rxr covariance matrix of within-subject sample medians

Values: - estimate of linear function, SE of linear function, lower limit, upper limit

alpha = .05
m = c(4.53, 2.03, 2.13)
h = c(1, -.5, -.5)
V = matrix(c(.132,.0118,.0147,.0118,.0250,.0124,.0147,.0124,.0292), nrow = 3, ncol = 3)
ci.lc.median.ws(alpha, m, h, V)
##      Estimate        SE       LL       UL
## [1,]     2.45 0.3539068 1.756355 3.143645


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