R/diagnostics.R
calc_moments.Rd
Calculate moments of a numeric vector
calc_moments(x)
a numeric vector
a named vector of descriptive statistics
x <- rexp(1000, 2) calc_moments(x) #> mean sd skewness kurtosis #> 0.5010385 0.4963055 1.8010240 4.6398823