Skip to contents

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

Value

A numeric single value with the computed value.

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