moments {confintr} | R Documentation |
Functions to calculate moments, skewness, and Pearson's measure of kurtosis. The latter is defined as the ratio of the 4th central moment and the squared second central moment. For a theoretical normal distribution, the kurtosis equals 3.
moment(z, p = 1, central = TRUE, na.rm = TRUE)
skewness(z, na.rm = TRUE)
kurtosis(z, na.rm = TRUE)
z |
Numeric vector. |
p |
Order of moment. |
central |
Should central moment be calculated? Default is |
na.rm |
Should missing values be removed? Default is |
A numeric vector of length one.
x <- 1:100
moment(x, 4)
skewness(x)
kurtosis(x)