Description Usage Arguments Examples
Estimation of sample moments.
1 | sample.moments(x, na.rm = FALSE, raw = T, central = T, coef = T, order = 1:4)
|
x |
a numeric vector of values |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds |
raw |
logical - calculate raw moments? |
central |
logical - calculate central moments? |
coef |
logical - calculate coefficients (coefficient of variation, skewness and kurtosis)? |
order |
vector of integers - raw moment orders |
1 2 3 4 5 6 7 | library(CoSMoS)
x <- rnorm(1000)
sample.moments(x)
y <- rparetoII(1000, 10, .1)
sample.moments(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.