powered by
Calculates central or non-central sample moments.
moment(z, p = 1, central = TRUE, na.rm = TRUE)
Numeric vector of length 1.
A numeric vector.
Order of moment.
Should central moment be calculated? Default is TRUE.
TRUE
Logical flag indicating whether to remove missing values or not. Default is TRUE.
skewness(), kurtosis()
skewness()
kurtosis()
moment(1:10, p = 1) moment(1:10, p = 1, central = FALSE) moment(1:10, p = 2) / stats::var(1:10)
Run the code above in your browser using DataLab