The same method for estimating kurtosis is used in SAS and SPSS. Missing values (NA)
are stripped before the computation. Note that at least 4 observations are needed to compute
excess kurtosis.
References
Rasch, D., Kubinger, K. D., & Yanagida, T. (2011). Statistics in psychology - Using R and SPSS.
New York: John Wiley & Sons.
# Set seed of the random number generationset.seed(123)
# Generate random numbers according to N(0, 1)x <- rnorm(100)
# Compute excess kurtosiskurtosis(x)