skew | R Documentation |
The Fisher-Pearson standardized moment coefficient adjusted for sample size.
skew(x, na.rm=TRUE)
x |
Variable from which to compute skewness. |
na.rm |
A logical value indicating whether NA values should be removed before the computation proceeds. |
G1
, the adjusted Fisher-Pearson standardized moment coefficient. The adjustment is the sample size n
divided by the product of n-1
and n-2
.
The core component of the skewness expression is for each data value calculate, standardize the value, then raise the standardized value to the third power. The component is the sum of these cubics.
Skew.
David W. Gerbing (Portland State University; gerbing@pdx.edu)
Doane, D. P. & Seward, L. E. (2011). Measuring Skewness: A Forgotten Statistic?,Journal of Statistics Education, 19(2), 1-18. URL: https://doi.org/10.1080/10691898.2011.11889611.
x <- rnorm(100)
skew(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.