\HeaderA{hubers}{Huber Proposal 2 Robust Estimator of Location and/or Scale}{hubers}
\keyword{robust}{hubers}
\begin{Description}\relax
Finds the Huber M-estimator for location with scale specified, scale
with location specified, or both if neither is specified.
\end{Description}
\begin{Usage}
\begin{verbatim}
hubers(y, k = 1.5, mu, s, initmu = median(y), tol = 1e-06)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{y}] vector y of data values

\item[\code{k}] Winsorizes at \code{k} standard deviations

\item[\code{mu}] specified location

\item[\code{s}] specified scale

\item[\code{initmu}] initial value of \code{mu}

\item[\code{tol}] convergence tolerance

\end{ldescription}
\end{Arguments}
\begin{Value}
list of location and scale estimates

\begin{ldescription}
\item[\code{mu}] location estimate

\item[\code{s}] scale estimate

\end{ldescription}
\end{Value}
\begin{References}\relax
Huber, P. J. (1981)
\emph{Robust Statistics.}
Wiley.

Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{huber}{huber}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
hubers(chem)
hubers(chem, mu=3.68)
\end{ExampleCode}
\end{Examples}

