powered by
skewH
Skewness of a histogram (using the third standardized moment)
skewH(object)# S4 method for distributionH skewH(object)
# S4 method for distributionH skewH(object)
A value for the skewness index
a distributionH object
distributionH
Antonio Irpino
## ---- A mydist distribution ---- mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.1, 0.5, 1)) ## ---- Compute the skewness of mydist ---- skewH(mydist) #---> -1.186017
Run the code above in your browser using DataLab