HL.estimate: Hodges-Lehmann estimate

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/rt-test-Rprogram.R

Description

Calculates the Hodges-Lehmann estimate.

Usage

1
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

1
2
x = c(0:10, 50)
HL.estimate(x)

rt.test documentation built on May 2, 2019, 6:02 a.m.

Related to HL.estimate in rt.test...