View source: R/locationEstimators.R
hodges_lehmann | R Documentation |
hodges_lehmann
calculates the one-sample Hodges-Lehmann estimator
of a sample.
hodges_lehmann(x, na.rm = FALSE)
x |
a (non-empty) numeric vector of data values. |
na.rm |
a logical value indicating whether NA values in |
The one-sample Hodges-Lehmann estimator for a sample of size n
is defined as
med(\frac{X_i + X_j}{2}, 1 ≤ i < j ≤ m).
The one-sample Hodges-Lehmann estimator.
HodLeh63estirobnptests
# Generate random sample set.seed(108) x <- rnorm(10) # Compute one-sample Hodges-Lehmann estimator hodges_lehmann(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.