\HeaderA{shorth}{Midpoint of the shorth}{shorth}
\keyword{arith}{shorth}
\begin{Description}\relax
Calculate the midpoint of the shorth
\end{Description}
\begin{Usage}
\begin{verbatim}shorth(x, na.rm=FALSE)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] Numeric
\item[\code{na.rm}] Logical
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The shorth is the shortest interval that covers half of the
values in \code{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 \code{x}.
\end{Details}
\begin{Value}
The midpoint of the short of \code{x}.
\end{Value}
\begin{Author}\relax
Wolfgang Huber \url{http://www.ebi.ac.uk/huber}
\end{Author}
\begin{Examples}
\begin{ExampleCode}
  x <- c(rnorm(100), runif(100) * 10)
  mean(x)
  median(x)
  shorth(x)
\end{ExampleCode}
\end{Examples}


