kurtosis: Kurtosis of a vector

Description Usage Arguments See Also Examples

View source: R/numerics.R

Description

Computes the excess or absolute kurtosis of a vector. By default, it returns the excess kurtosis, so that (for example) the Normal distribution returns values near zero.

Usage

1
kurtosis(x, excess = TRUE, na.rm = TRUE)

Arguments

x

numeric vector

excess

logical; compute excess rather than absolute kurtosis?

na.rm

logical; should missing values be removed?

See Also

skewness

Examples

1
2
3
4
kurtosis(rnorm(1000))
kurtosis(rnorm(1000), excess=FALSE)
kurtosis(runif(1000))
kurtosis(rcauchy(1000))

stevetnz/stevesRfunctions documentation built on May 28, 2019, 8:21 a.m.