Learn R Programming

HistDAWass (version 1.0.4)

kurtH: Method kurtH: computes the kurthosis of a distribution

Description

Kurtosis of a histogram (using the fourth standardized moment)

Usage

kurtH(object)

# S4 method for distributionH kurtH(object)

Arguments

object

a distributionH object

Value

A value for the kurtosis index, 3 is the kurtosis of a Gaussian distribution

Examples

Run this code
# 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