Learn R Programming

fungible (version 2.2)

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)

Arguments

x

Either a vector or matrix of numeric values.

Value

Skewness for each column in x.

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
# NOT RUN {
x <- matrix(rnorm(1000), 100, 10)
skew(x)

# }

Run the code above in your browser using DataLab