HL.mean | R Documentation |
Calculates the Hodges-Lehman estimate of location –which is consistent for the true pseudomedian– using Walsh averages (Hollander and Wolfe 1999, pgs. 51-55). If requested, the function also provides confidence intervals for the true pseudomedian. In a symmetric distribution the mean, median, and pseudomedian will be identical.
HL.mean(x, conf = NULL, method = "exact")
x |
A vector of quantitative data. |
conf |
A proportion specifying 1 - P(type I error). |
method |
method for confidence interval calculation. One of |
Ken Aho
Hollander, M., and Wolfe, D. A (1999) Nonparametric Statistical Methods. New York: John Wiley & Sons.
H.mean
, G.mean
# Hamilton depression scale (Hollander and Wolfe 1999)
x<-c( -0.952, 0.147, -1.022, -0.430, -0.620, -0.590, -0.490, 0.080, -0.010)
HL.mean(x, conf = .96)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.