Displaying 1 result from an estimated 1 matches for "mkurtosis".
Did you mean:
kurtosis
2006 Sep 08
1
Computing skewness and kurtosis with the moments package
...S, I get
Skewness -0.320
Kurtosis -1.138
With R:
> skewness(loglen)
[1] -0.317923
> kurtosis(loglen)
[1] 1.860847
Using the example skew and kurtosis functions from M. J. Crawley's
"Statistics: An introduction using R": pp 69 and 72:
> mskew(loglen)
[1] -0.3158337
> mkurtosis(loglen)
[1] -1.155441
The kurtosis value here matches the SPSS calculation somewhat more
closely, but is still not exactly the same.
Looking at the functions, there is some difference between them:
> skewness
function (x, na.rm = FALSE)
{
if (is.matrix(x))
apply(x, 2, skewness,...