Learn R Programming

fungible (version 2.4.4)

skew: Calculate Univariate Skewness for a Vector or Matrix

Description

Calculate univariate skewness for vector or matrix (algorithm G1 in Joanes & Gill, 1998).

Usage

skew(x)

Value

Skewness for each column in x.

Arguments

x

Either a vector or matrix of numeric values.

Author

Niels Waller

References

Joanes, D. N. & Gill, C. A. (1998). Comparing measures of sample skewness and kurtosis. The Statistician, 47, 183-189.

See Also

kurt

Examples

Run this code

x <- matrix(rnorm(1000), 100, 10)
skew(x)

Run the code above in your browser using DataLab