\HeaderA{ucv}{Unbiased Cross-Validation for Bandwidth Selection}{ucv}
\keyword{dplot}{ucv}
\begin{Description}\relax
Uses unbiased cross-validation to select the bandwidth of a Gaussian
kernel density estimator.
\end{Description}
\begin{Usage}
\begin{verbatim}
ucv(x, nb = 1000, lower, upper)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric vector

\item[\code{nb}] number of bins to use.

\item[\code{lower, upper}] Range over which to minimize.  The default is almost always satisfactory.

\end{ldescription}
\end{Arguments}
\begin{Value}
a bandwidth.
\end{Value}
\begin{References}\relax
Scott, D. W. (1992)
\emph{Multivariate Density Estimation: Theory, Practice, and  Visualization.}
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{bcv}{bcv}}, \code{\LinkA{width.SJ}{width.SJ}}, \code{\LinkA{density}{density}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
ucv(geyser$duration)
\end{ExampleCode}
\end{Examples}

