Learn R Programming

agricolae (version 1.0-1)

c.kurtosis: Computes the coefficient of Kurtosis

Description

Obtains the value of the kurtosis for a normally distributed variable. Result similar to SAS.

Usage

c.kurtosis(x)

Arguments

x
a numeric vector

Value

  • xThe kurtosis of x

Details

n = length(x) $n(n+1){(n-1)(n-2)(n-3)}i\left(x_i - mean(x){sd(x)}\right)^4 - 3(n-1)^2{(n-2)(n-3)}$

See Also

c.skewness

Examples

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

Run the code above in your browser using DataLab