When calculating kurtosis using the e1071 package like the following:
x_test <- c(100,98, 4)
kurtosis(x_test)
I always get -2.33 no matter what 3 numbers I pick. With 2 numbers, it's always -2.75. However when using other methods (such as pandas in python), I will get a different kurtosis for each set of values I pick.
Is this an error in the package or am I using this package wrong? Thanks!
If you look at the manual page for the function
?kurtosis
, you will see that kurtosis can be defined in different ways. R provides 3 of those: