moments: Skewness and (excess) Kurtosis of a vector of values

Description Usage Arguments Details Value Author(s) Examples

Description

These functions calculate skewness and excess kurtosis of a vector of values. They were taken from the package 'moments'.

Usage

1
2
skewness(x, na.rm = FALSE) 
kurtosis(x, na.rm = FALSE) 

Arguments

x

a numeric vector, matrix or data frame.

na.rm

logical. Should missing values be removed?

Details

Skewness:

\frac{\frac{1}{n} ∑_{i=1}^n (x_i-\overline{x})^3}{≤ft(\frac{1}{n} ∑_{i=1}^n (x_i-\overline{x})^2\right)^{3/2}}

(excess) Kurtosis:

\frac{\frac{1}{n} ∑_{i=1}^n (x_i - \overline{x})^4}{≤ft(\frac{1}{n} ∑_{i=1}^n (x_i - \overline{x})^2\right)^2} - 3

Value

The skewness/kurtosis values.

Author(s)

Andrej-Nikolai Spiess

Examples

1
2
3
X <- rnorm(100, 20, 2)
skewness(X)
kurtosis(X)

propagate documentation built on May 7, 2018, 1:03 a.m.