View source: R/kurtosis_skewness.R
Skewness and kurtosis coefficients | R Documentation |
Skewness and kurtosis coefficients.
skew(x, pvalue = FALSE)
kurt(x, pvalue = FALSE)
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. |
The sample skewness and kurtosis coefficient are calculated. For the kurtosis we do not subtract 3.
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.
Klio Lakiotaki
R implementation and documentation: Klio Lakiotaki <kliolak@gmail.com>.
https://en.wikipedia.org/wiki/Skewness
https://en.wikipedia.org/wiki/Kurtosis
colskewness, skew.test2, colmeans, colVars, colMedians
x <- rgamma(500,1, 4)
res<-skew(x)
res<-kurt(x, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.