powered by
Calculates the Hodges-Lehmann estimate.
HL.estimate(x, na.rm = FALSE, IncludeEqual = FALSE)
vector of observations.
a logical value indicating whether NA values should be stripped before the computation proceeds.
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.
If x is not logical (coerced to numeric), numeric (including integer) or complex, NA_real_ is returned, with a warning.
Hodges, J. L. and E. L. Lehmann (1963). Estimates of location based on rank tests. Annals of Mathematical Statistics, 34, 598--611.
mean for calculating sample mean.
mean
# NOT RUN { x = c(0:10, 50) HL.estimate(x) # }
Run the code above in your browser using DataLab