
kurtH
: computes the kurthosis of a distributionKurtosis of a histogram (using the fourth standardized moment)
kurtH(object)# S4 method for distributionH
kurtH(object)
a distributionH
object
A value for the kurtosis index, 3 is the kurtosis of a Gaussian distribution
# NOT RUN {
##---- A mydist distribution ----
mydist<-distributionH(x=c(1,2,3,10), p=c(0,0.1,0.5,1))
##---- Compute the kurtosis of mydist ----
kurtH(mydist) #---> 1.473242
# }
Run the code above in your browser using DataLab