shorth {genefilter}R Documentation

Midpoint of the shorth

Description

Calculate the midpoint of the shorth

Usage

shorth(x, na.rm=FALSE)

Arguments

x Numeric
na.rm Logical

Details

The shorth is the shortest interval that covers half of the values in x. Its midpoint is the median of the data values that lie in the shorth and can be used as an estimator of the mode of the distribution that generated x.

Value

The midpoint of the short of x.

Author(s)

Wolfgang Huber http://www.ebi.ac.uk/huber

Examples

  x <- c(rnorm(100), runif(100) * 10)
  mean(x)
  median(x)
  shorth(x)

[Package genefilter version 1.8.0 Index]