\HeaderA{kurtosis}{Kurtosis}{kurtosis}
\keyword{univar}{kurtosis}
\begin{Description}\relax
compute kurtosis of a univariate distribution
\end{Description}
\begin{Usage}
\begin{verbatim}
kurtosis(x, na.rm = FALSE, method = c("excess", "moment", "fisher"), ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{na.rm}] a logical. Should missing values be removed?

\item[\code{method}] a character string which specifies the method of computation.
These are either \code{"moment"}, \code{"fisher"}, or \code{"excess"}.
If \code{"excess"} is
selected, then the value of the kurtosis is computed by the
\code{"moment"} method and a value of 3 will be subtracted.
The \code{"moment"} method is based on the definitions of
kurtosis for distributions; these forms should
be used when resampling (bootstrap or jackknife). The
\code{"fisher"} method correspond to the usual "unbiased"
definition of sample variance, although in the case of
kurtosis exact unbiasedness is not possible.

\item[\code{x}] a numeric vector or object.

\item[\code{...}] arguments to be passed.

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function was ported from the RMetrics package fUtilities to eliminate a dependency on fUtilties being loaded every time.  This function is identical except for the addition of \code{\LinkA{checkData}{checkData}} and additional labeling.
\end{Details}
\begin{Value}
\code{kurtosis}
returns the value of the statistics, a numeric value. An
attribute which reports the used method is added.
\end{Value}
\begin{Author}\relax
Diethelm Wuertz
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{skewness}{skewness}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## mean -
## var -
   # Mean, Variance:
   r = rnorm(100)
   mean(r)
   var(r)

## kurtosis -
   kurtosis(r)

data(managers)
kurtosis(managers[,1:8])
\end{ExampleCode}
\end{Examples}

