Last chance! 50% off unlimited learning
Sale ends in
Computes the kurtosis.
kurtosis(x, na.rm = FALSE, type = 3)
a numeric vector containing the values whose kurtosis is to be computed.
a logical value indicating whether NA
values
should be stripped before the computation proceeds.
an integer between 1 and 3 selecting one of the algorithms for computing skewness detailed below.
The estimated kurtosis of x
.
If x
contains missings and these are not removed, the skewness
is NA
.
Otherwise, write x
,
Joanes and Gill (1998) discuss three methods for estimating kurtosis:
Only type = 2
) is unbiased under
normality.
D. N. Joanes and C. A. Gill (1998), Comparing measures of sample skewness and kurtosis. The Statistician, 47, 183--189.
# NOT RUN {
x <- rnorm(100)
kurtosis(x)
# }
Run the code above in your browser using DataLab