Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

skew

Finding skewness


Description

Finding skewness (g_{1}) of an object

Usage

skew(object, population = FALSE)

Arguments

object

A vector used to find a skewness

population

TRUE to compute the parameter formula. FALSE to compute the sample statistic formula.

Details

The skewness computed is g_{1}. The parameter skewness γ_{2} formula is

γ_{2} = \frac{μ_{3}}{μ^{3/2}_{2}},

where μ_{i} denotes the i order central moment.

The excessive kurtosis formula for sample statistic g_{2} is

g_{2} = \frac{k_{3}}{k^{2}_{2}},

where k_{i} are the i order k-statistic.

The standard error of the skewness is

Var(\hat{g}_2) = \frac{6}{N}

where N is the sample size.

Value

A value of a skewness with a test statistic if the population is specified as FALSE

Author(s)

Sunthud Pornprasertmanit (psunthud@gmail.com)

References

Weisstein, Eric W. (n.d.). Skewness. Retrived from MathWorld–A Wolfram Web Resource: http://mathworld.wolfram.com/Skewness.html

See Also

  • kurtosis Find the univariate excessive kurtosis of a variable

  • mardiaSkew Find Mardia's multivariate skewness of a set of variables

  • mardiaKurtosis Find the Mardia's multivariate kurtosis of a set of variables

Examples

skew(1:5)

semTools

Useful Tools for Structural Equation Modeling

v0.5-4
GPL (>= 2)
Authors
Terrence D. Jorgensen [aut, cre] (<https://orcid.org/0000-0001-5111-6773>), Sunthud Pornprasertmanit [aut], Alexander M. Schoemann [aut] (<https://orcid.org/0000-0002-8479-8798>), Yves Rosseel [aut] (<https://orcid.org/0000-0002-4129-4477>), Patrick Miller [ctb], Corbin Quick [ctb], Mauricio Garnier-Villarreal [ctb] (<https://orcid.org/0000-0002-2951-6647>), James Selig [ctb], Aaron Boulton [ctb], Kristopher Preacher [ctb], Donna Coffman [ctb], Mijke Rhemtulla [ctb] (<https://orcid.org/0000-0003-2572-2424>), Alexander Robitzsch [ctb] (<https://orcid.org/0000-0002-8226-3132>), Craig Enders [ctb], Ruben Arslan [ctb] (<https://orcid.org/0000-0002-6670-5658>), Bell Clinton [ctb], Pavel Panko [ctb], Edgar Merkle [ctb] (<https://orcid.org/0000-0001-7158-0653>), Steven Chesnut [ctb], Jarrett Byrnes [ctb], Jason D. Rights [ctb], Ylenio Longo [ctb], Maxwell Mansolf [ctb] (<https://orcid.org/0000-0001-6861-8657>), Mattan S. Ben-Shachar [ctb] (<https://orcid.org/0000-0002-4287-4801>), Mikko Rönkkö [ctb] (<https://orcid.org/0000-0001-7988-7609>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.