hlest: Hodges-Lehmann (median of Walsh averages) Estimator

Usage Arguments Details Author(s) References Examples

Usage

1
hlest(x)

Arguments

x

Sample

Details

If med is set to FALSE in geerfit call then the Hodges-Lehmann (estimator is computed.

Author(s)

Joseph McKean

References

Kloke and McKean (2014), Nonparametrics Using R, Boca Raton: Chapman-Hall.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
    mat <- pairup(x, type = "leq")
    hlest <- median((mat[, 1] + mat[, 2])/2)
    return(hlest)
  }

kloke/rbgee documentation built on May 20, 2019, 12:34 p.m.