View source: R/calc_kurtosis.r
calc_kurtosis | R Documentation |
Computation of the kurtosis, a measure of the "peakedness". This metric can be used to determine the shape of a dataset, and whether it is platykurtic (flatter than a normal distribution), mesokurtic (same kurtosis as a normal distribution), or leptokurtic (more peaked than a normal distribution).
calc_kurtosis(x, type = c("unbiased", "biased", "excess", "percentile"))
x |
A numeric vector |
type |
A character single value, that is the type of the kurtosis to be computed |
Currently, it is possible to compute the following metrics:
- Biased kurtosis coefficient
- Excess kurtosis coefficient
- Percentile kurtosis coefficient
- Unbiased kurtosis coefficient
A numeric single value with the computed value.
x <- rnorm(100,1)
calc_kurtosis(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.