R: Skewness and kurtosis coefficients

Skewness and kurtosis coefficients {Rfast} | R 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)

[Package Rfast version 2.0.4 Index]