skewness: Skewness

Description Usage Arguments Details Value References Examples

Description

Computes the skewness.

Usage

1

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

1
2
x <- rnorm(100)
skewness(x)

Example output

Loading required package: mclust
Package 'mclust' version 5.4.3
Type 'citation("mclust")' for citing this R package in publications.
     Loading library npde, version 2.0, August 2012
         please direct bugs, questions and feedback to emmanuelle.comets@inserm.fr

[1] 0.1404452

npde documentation built on April 7, 2021, 5:07 p.m.