moments provides the estimate of the first 4 moment-statistics of a sample.
1 2 3 4
vector representing a data-sample
Skewness and kurtosis are defined as:
skew = n^(-1) sd(x)^(-3) sum_i (x_i - mean(x))^3
kurt = n^(-1) sd(x)^(-4) sum_i (x_i - mean(x))^4 - 3
For information on the package and the Author, and for all the references, see
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.