powered by
The function computes the centred and reduced moment of order 3 of the vector x.
x
skewness(x)
numeric, vector of independent and identical random variables
A vector of i.i.d. normal random variable.
The function returns the value of
$$\frac{1}{n}\sum_{k=1}^{n}[(x_{i} - \mu_{x})/\sigma_{x}]^3$$
https://en.wikipedia.org/wiki/Skewness
http://pgm-solutions.com/packages
# NOT RUN { skewness(rpgm.rnorm(10^5)) # }
Run the code above in your browser using DataLab