Calculates the kurtosis of a numeric vector.
A value near 0 suggests normal kurtosis (mesokurtic),
positive values indicate heavier tails (leptokurtic), and negative
values indicate lighter tails (platykurtic).
Usage
kurt(x)
Value
A single numeric value representing the kurtosis
Arguments
x
A numeric vector.
Details
The z-scores are computed as:
$$z_i = \frac{x_i - \bar{x}}{sd}$$
The kurtosis is then calculated as:
$$\text{Kurtosis} = \frac{1}{n} \sum_{i=1}^{n} z_i^4 - 3$$