| sample.moments | R Documentation |
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
)
x |
numeric vector of values |
na.rm |
logical; strip |
raw |
logical; compute raw moments? |
central |
logical; compute central moments? |
coef |
logical; compute standardised coefficients (CV, skewness, kurtosis)? |
order |
integer vector; raw moment orders (default |
a named list with zero or more of:
mraw moments
mucentral moments
coefficientsCV, skewness, kurtosis
moments, checkTS
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.