hl.loc | R Documentation |
Function to compute the Hodges - Lehmann estimator of location in the one sample case.
hl.loc(x, na.action = na.fail)
x |
a numeric vector. |
na.action |
a function which indicates what should happen when the data contain 'NA's. Default is to fail. |
The Hodges - Lehmann estimator is the median of the combined data points and Walsh averages.
It is the same as the Pseudo Median returned as a by-product of the function wilcox.test
.
the Hodges - Lehmann estimator of location.
Klaus Nordhausen
Hettmansperger, T.P. and McKean, J.W. (1998), Robust Nonparametric Statistical Methods, London, Arnold.
Hodges, J.L., and Lehmann, E.L. (1963), Estimates of location based on rank tests. The Annals of Mathematical Statistics, 34, 598–611.
wilcox.test
set.seed(1)
x <- rt(100, df = 3)
hl.loc(x)
# same as
wilcox.test(x, conf.int = TRUE)$estimate
rm(.Random.seed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.