Calculate univariate kurtosis for a vector or matrix (algorithm G2 in Joanes & Gill, 1998). Note that, as defined in this function, the expected kurtosis of a normally distributed variable is 0 (i.e., not 3).
kurt(x)
Either a vector or matrix of numeric values.
Joanes, D. N. & Gill, C. A. (1998). Comparing measures of sample skewness and kurtosis. The Statistician, 47, 183-189.
# NOT RUN {
x <- matrix(rnorm(1000), 100, 10)
print(kurt(x))
# }
Run the code above in your browser using DataLab