powered by
Computes raw moments, central moments, and standardised coefficients (CV, skewness, kurtosis) from a numeric sample.
sample.moments( x, na.rm = FALSE, raw = TRUE, central = TRUE, coef = TRUE, order = 1:4 )
a named list with zero or more of:
m
raw moments
mu
central moments
coefficients
CV, skewness, kurtosis
numeric vector of values
logical; strip NA values before computation?
NA
logical; compute raw moments?
logical; compute central moments?
logical; compute standardised coefficients (CV, skewness, kurtosis)?
integer vector; raw moment orders (default 1:4)
1:4
moments, checkTS
moments
checkTS
library(CoSMoS) x <- rnorm(1000) sample.moments(x) y <- rparetoII(1000, 10, .1) sample.moments(y)
Run the code above in your browser using DataLab