Kurtosis computation
calc_kurtosis.Rd
Computation of the kurtosis, a measure of the "peakedness". This metric can be used to determine the shape of a dataset, and whether it is platykurtic (flatter than a normal distribution), mesokurtic (same kurtosis as a normal distribution), or leptokurtic (more peaked than a normal distribution).
Usage
calc_kurtosis(x, type = c("unbiased", "biased", "excess", "percentile"))
Arguments
- x
A numeric vector
- type
A character single value, that is the type of the kurtosis to be computed
Details
Currently, it is possible to compute the following metrics:
- Biased kurtosis coefficient
- Excess kurtosis coefficient
- Percentile kurtosis coefficient
- Unbiased kurtosis coefficient
Examples
x <- rnorm(100,1)
calc_kurtosis(x)
#> [1] -3.061013