mirror of
https://github.com/msberends/AMR.git
synced 2025-12-14 23:50:23 +01:00
1.1 KiB
1.1 KiB
Kurtosis of the Sample
Kurtosis is a measure of the "tailedness" of the probability distribution of a real-valued random variable. A normal distribution has a kurtosis of 3 and a excess kurtosis of 0.
Usage
kurtosis(x, na.rm = FALSE, excess = FALSE)
# Default S3 method
kurtosis(x, na.rm = FALSE, excess = FALSE)
# S3 method for class 'matrix'
kurtosis(x, na.rm = FALSE, excess = FALSE)
# S3 method for class 'data.frame'
kurtosis(x, na.rm = FALSE, excess = FALSE)
Arguments
-
x:
A vector of values, a matrix or a data.frame.
-
na.rm:
A logical to indicate whether
NAvalues should be stripped before the computation proceeds. -
excess:
A logical to indicate whether the excess kurtosis should be returned, defined as the kurtosis minus 3.
See also
Examples
kurtosis(rnorm(10000))
#> [1] 3.071712
kurtosis(rnorm(10000), excess = TRUE)
#> [1] -0.02774835