powered by
x
If $N = length(x)$, then the skewness of $x$ is defined as
$$N^(-1) sd(x)^(-3) sum_i (x_i - mean(x))^3$$
skewness(x, na.rm=FALSE)
x<-rnorm(100) skewness(x)
Run the code above in your browser using DataLab