Generic function for computation of kurtosis. The methods defined in package timeDate are described here.
a numeric vector or object.
a logical. Should missing values be removed?
a character string, the method of computation, see section ‘Details’.
arguments to be passed.
kurtosis is an S3 generic function. This page describes the
methods defined in package
"method" can be one of
"excess" is selected,
then the value of the kurtosis is computed by the
method and a value of 3 will be subtracted. The
method is based on the definitions of kurtosis for distributions and
this method should be used when resampling (bootstrap or
"fisher" method correspond to the usual
"unbiased" definition of sample variance, although in the case of
kurtosis exact unbiasedness is not possible.
x is numeric the kurtosis is computed according to the
description given for argument
method. A logical vector is
treated as a vector of 1's and 0's.
data.frame method applies
kurtosis recursively to
each column. The
POSIXlt method computes the kurtosis of the
underlying numerical representation of the date/times. The method for
POSIXct does the same after converting the argument to
The default method returns
NA, with a warning, if it can't