skew: Skewness

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/moments.R

Description

Calculates kurtosis which is a measure of the asymmetry of a distribution.

Usage

1
skew(x, type = 2)

Arguments

x

Numeric vector. Sample data.

type

Integer. 1, 2, or 3. See details.

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)

Author(s)

Ivan Jacob Agaloos Pesigan

References

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

Wikipedia: Kurtosis

See Also

Other moments functions: cumulant(), kurt(), moments(), moment()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)
skew(x, type = 2)
skew(x, type = 3)
x <- rnorm(n = 1000)
skew(x, type = 1)
skew(x, type = 2)
skew(x, type = 3)

jeksterslabds/jeksterslabRdist documentation built on Aug. 9, 2020, 7:33 a.m.