Calculates kurtosis which is a measure of the asymmetry of a distribution.
skew(x, type = 2)
x | Numeric vector. Sample data. |
---|---|
type | Integer. 1, 2, or 3. See details. |
Type 1 $$ g_1 = \frac{m_3}{m_{2}^{\frac{3}{2}}} %(\#eq:dist-moments-g1) $$
Type 2 $$ G_1 = \frac{K_3}{K_{2}^{\frac{3}{2}}} %(\#eq:dist-moments-G1) $$
Type 3 $$ b_1 = \frac{m_3}{s^3} %(\#eq:dist-moments-b1) $$
Joanes, D., & Gill, C. (1998). Comparing Measures of Sample Skewness and Kurtosis. Journal of the Royal Statistical Society. Series D (The Statistician), 47(1), 183-189. 2988433
x <- c( 10, 11, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 16, 17 ) skew(x, type = 1)#> [1] 0.08931506skew(x, type = 2)#> [1] 0.09672616skew(x, type = 3)#> [1] 0.08270087#> [1] -0.002396724skew(x, type = 2)#> [1] -0.002400326skew(x, type = 3)#> [1] -0.00239313