Learn R Programming

pedometrics (version 0.12.1)

skewness: Moment coefficient of skewness

Description

Compute the moment coefficient of skewness of a continuous, possibly non-normal variable.

Usage

skewness(x)

Arguments

x

Numeric vector, the values of the variable of interest.

Value

A numerical value: the moment coefficient of skewness of x.

References

B. S. Everitt, The Cambridge Dictionary of Statistics, 3rd ed. Cambridge: Cambridge University Press, 2006, p. 432.

D. N. Joanes and C. A. Gill, Comparing measures of sample skewness and kurtosis, J Royal Statistical Soc D, vol. 47, no. 1, pp. 183<U+2013>189, Mar. 1998, doi: 10.1111/1467-9884.00122.

H. Cram<U+00E9>r, Mathematical Methods of Statistics. Princeton: Princeton University Press, 1946, p. 575.

Examples

Run this code
# NOT RUN {
x <- rlnorm(10)
skw <- skewness(x)
# }

Run the code above in your browser using DataLab