kurtosis {agricolae}R Documentation

Finding the Kurtosis coefficient

Description

It obtains the value of the kurtosis for a normally distributed variable. The result is similar to SAS.

Usage

kurtosis(x)

Arguments

x a numeric vector

Details

n = length(x)

$frac{n(n+1)}{(n-1)(n-2)(n-3)}sum_{i}(frac{x_i - mean(x)}{sd(x)})^4 - frac{3(n-1)^2}{(n-2)(n-3)}$

Value

x The kurtosis of x

See Also

skewness

Examples

library(agricolae)
x<-c(3,4,5,2,3,4,5,6,4,NA,7)
kurtosis(x)
# value is -0.1517996

[Package agricolae version 1.0-6 Index]