View source: R/locationEstimators.R
hodges_lehmann_2sample | R Documentation |
hodges_lehmann_2sample
calculates the two-sample Hodges-Lehmann
estimator for the location difference of two samples x and y.
hodges_lehmann_2sample(x, y, na.rm = FALSE)
x |
a (non-empty) numeric vector of data values. |
y |
a (non-empty) numeric vector of data values. |
na.rm |
a logical value indicating whether NA values in |
The two-sample Hodges-Lehmann estimator for two samples x
and y
of sizes m
and n
is defined as
med(|x_i - y_j|, 1 ≤ i ≤ m, 1 ≤ j ≤ n).
The two-sample Hodges-Lehmann estimator.
HodLeh63estirobnptests
# Generate random samples set.seed(108) x <- rnorm(10); y <- rnorm(10) # Compute two-sample Hodges-Lehmann estimator hodges_lehmann_2sample(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.