Compute the kurtosis of a probability distribution.

ds_kurtosis(x, na.rm = FALSE)

Arguments

x

a numeric vector containing the values whose kurtosis is to be computed

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

Kurtosis of x

Details

Any NA values are stripped from x before computation takes place.

Deprecated Function

kurtosis() has been deprecated. Instead use ds_kurtosis().

References

Sheskin, D.J. (2000) Handbook of Parametric and Nonparametric Statistical Procedures, Second Edition. Boca Raton, Florida: Chapman & Hall/CRC.

See also

ds_skewness

Examples

ds_kurtosis(mtcars$mpg)
#> [1] -0.02200629