skewness {agricolae} | R Documentation |
It returns the skewness of a distribution. It is similar to SAS.
skewness(x)
x |
a numeric vector |
n = length(x)
$frac{n}{(n-1)(n-2)}sum_{i}(frac{x_i - mean(x)}{sd(x)})^3$
x |
The skewness of x |
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