hodges_lehmann {robnptests} | R Documentation |
One-sample Hodges-Lehmann estimator
Description
hodges_lehmann
calculates the one-sample Hodges-Lehmann estimator
of a sample.
Usage
hodges_lehmann(x, na.rm = FALSE)
Arguments
x |
a (non-empty) numeric vector of data values. |
na.rm |
a logical value indicating whether NA values in |
Details
The one-sample Hodges-Lehmann estimator for a sample of size n
is defined as
med(\frac{X_i + X_j}{2}, 1 \le i < j \le m).
Value
The one-sample Hodges-Lehmann estimator.
References
Hodges JL, Lehmann EL (1963). “Estimates of location based on rank tests.” The Annals of Mathematical Statistics, 34(2), 598–611. doi:10.1214/aoms/1177704172.
Examples
# Generate random sample
set.seed(108)
x <- rnorm(10)
# Compute one-sample Hodges-Lehmann estimator
hodges_lehmann(x)
[Package robnptests version 1.1.0 Index]