Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stats-kurtosis

Kurtosis


Description

Functions to compute kurtosis.

Usage

kurtosis(x, ...)

## Default S3 method:
kurtosis(x, na.rm = FALSE, method = c("excess", "moment", "fisher"), ...)
## S3 method for class 'data.frame'
kurtosis(x, ...)
## S3 method for class 'POSIXct'
kurtosis(x, ...)
## S3 method for class 'POSIXlt'
kurtosis(x, ...)

Arguments

na.rm

a logical. Should missing values be removed?

method

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

x

a numeric vector or object.

...

arguments to be passed.

Value

kurtosis

returns the value of the statistics, a numeric value. An attribute which reports the used method is added.

See Also

link{skewness}.

Examples

## mean -
## var -
   # Mean, Variance:
   r = rnorm(100)
   mean(r)
   var(r)
   
## kurtosis - 
   kurtosis(r)

timeDate

Rmetrics - Chronological and Calendar Objects

v3043.102
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb], Joe W. Byers [ctb]
Initial release
2018-02-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.