Hodges-Lehmann-estimate {rt.test} | R Documentation |
Hodges-Lehmann estimate
Description
Calculates the Hodges-Lehmann estimate.
Usage
HL.estimate(x, na.rm = FALSE, IncludeEqual = FALSE)
Arguments
x |
vector of observations. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
IncludeEqual |
FALSE (default) calculates median of ([x[i]+x[j])/2) with i<j. TRUE calculates median of ([x[i]+x[j])/2) with i<=j. |
Value
If x is not logical (coerced to numeric), numeric (including integer) or complex, NA_real_ is returned, with a warning.
Author(s)
Chanseok Park and Min Wang
References
Hodges, J. L. and E. L. Lehmann (1963). Estimates of location based on rank tests. Annals of Mathematical Statistics, 34, 598–611.
See Also
mean
for calculating sample mean.
Examples
x = c(0:10, 50)
HL.estimate(x)
[Package rt.test version 1.18.7.9 Index]