View source: R/ci_skew_and_kurtosis.R
moment | R Documentation |
Calculates central or non-central sample moments.
moment(z, p = 1, central = TRUE, na.rm = TRUE)
z |
A numeric vector. |
p |
Order of moment. |
central |
Should central moment be calculated? Default is |
na.rm |
Logical flag indicating whether to remove missing values or not.
Default is |
Numeric vector of length 1.
skewness()
, kurtosis()
moment(1:10, p = 1)
moment(1:10, p = 1, central = FALSE)
moment(1:10, p = 2) / stats::var(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.