powered by
Estimation of sample moments.
sample.moments(x, na.rm = FALSE, raw = T, central = T, coef = T, order = 1:4)
a numeric vector of values
a logical value indicating whether NA values should be stripped before the computation proceeds
logical - calculate raw moments?
logical - calculate central moments?
logical - calculate coefficients (coefficient of variation, skewness and kurtosis)?
vector of integers - raw moment orders
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