skew: Skewness and kurtosis coefficients

View source: R/kurtosis_skewness.R

Skewness and kurtosis coefficientsR Documentation

Skewness and kurtosis coefficients

Description

Skewness and kurtosis coefficients.

Usage

skew(x, pvalue = FALSE)

kurt(x, pvalue = FALSE) 

Arguments

x

A numerical vector with data.

pvalue

If you want a hypothesis test that the skewness or kurtosis are significant set this to TRUE. This checks whether the skewness is significantly different from 0 and whether the kurtosis is significantly different from 3.

Details

The sample skewness and kurtosis coefficient are calculated. For the kurtosis we do not subtract 3.

Value

If "pvalue" is FALSE (default value) the skewness or kurtosis coefficients are returned. Otherwise, the p-value of the significance of the coefficient is returned.

Author(s)

Klio Lakiotaki

R implementation and documentation: Klio Lakiotaki <kliolak@gmail.com>.

References

https://en.wikipedia.org/wiki/Skewness

https://en.wikipedia.org/wiki/Kurtosis

See Also

colskewness, skew.test2, colmeans, colVars, colMedians

Examples

x <- rgamma(500,1, 4)
res<-skew(x)
res<-kurt(x, TRUE)

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.