skewness: Skewness

skewnessR Documentation

Skewness

Description

Computes the skewness.

Usage

skewness(x)

Arguments

x

a numeric vector containing the values whose skewness is to be computed. NA values are removed in the computation.

Details

If N = length(x), then the skewness of x is defined as

N^(-1) sd(x)^(-3) sum_i (x_i - mean(x))^3.

Value

The skewness of x.

References

G. Snedecor, W. Cochran. Statistical Methods, Wiley-Blackwell, 1989

Examples


x <- rnorm(100)
skewness(x)


LAPKB/npde documentation built on Oct. 19, 2022, 2:10 p.m.