Learn R Programming

agricolae (version 1.0-4)

skewness: Finding the skewness coefficient

Description

It returns the skewness of a distribution. It is similar to SAS.

Usage

skewness(x)

Arguments

x
a numeric vector

Value

  • xThe skewness of x

Details

n = length(x) $n{(n-1)(n-2)}\sum_{i}\left(x_i - mean(x){sd(x)}\right)^3$

See Also

kurtosis

Examples

Run this code
library(agricolae)
x<-c(3,4,5,2,3,4,NA,5,6,4,7)
skewness(x)
# value is 0,3595431, is slightly asimetrica (positive) to the right

Run the code above in your browser using DataLab