kurtosis | R Documentation |
Kurtosis
kurtosis(x, excess.kurtosis = FALSE, sample = FALSE, na.rm = FALSE)
x |
numerical vector. |
excess.kurtosis |
logical. Compute excess kurtosis instead of kurtosis? |
sample |
logical. Compute sample kurtosis or apply correction? |
na.rm |
logical. Should missing values be removed? |
The value of the (excess) kurtosis. If sample = FALSE
a correction for sample size is applied.
# kurtosis of the height in EUR2170 data
kurtosis(EUR2170$height, sample = TRUE)
# adults only
he <- subset(EUR2170, age > 20, "height")
kurtosis(he, sample = TRUE)
# males and females separately
heM <- subset(EUR2170, age > 20 & sex == "M", "height")
heF <- subset(EUR2170, age > 20 & sex == "F", "height")
kurtosis(heM, sample = TRUE)
kurtosis(heF, sample = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.