kurt {MSMU}R Documentation

Compute Sample Kurtosis

Description

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)

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

Where:

Value

A single numeric value representing the kurtosis

Examples

# Kurtosis of mpg in mtcars
data("mtcars")
kurt(mtcars$mpg)



[Package MSMU version 0.1.2 Index]