50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

semTools (version 0.5-0)

skew: Finding skewness

Description

Finding skewness (g1) 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.

Value

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

Details

The skewness computed is g1. The parameter skewness γ2 formula is

γ2=μ3μ23/2,

where μi denotes the i order central moment.

The excessive kurtosis formula for sample statistic g2 is

g2=k3k22,

where ki are the i order k-statistic.

The standard error of the skewness is

Var(g^2)=6N

where N is the sample size.

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

Run this code
# NOT RUN {
skew(1:5)

# }

Run the code above in your browser using DataLab