Calculate mean, variance, skewness and kurtosis of a numerical vector
This function evaluates the mean, variance, skewness and kurtosis of a numerical vector. Missing values are automatically removed.
fun.moments.r(x, normalise = "N")
x |
A numeric vector |
normalise |
"Y" if you want kurtosis to be calculated with reference to kurtosis = 0 under Normal distribution. Default is "N". |
A vector of mean, variance, skewness and kurtosis.
Please contact the author directly if you find a bug!
Steve Su
fun.moments.r(rnorm(1000)) fun.moments.r(rnorm(1000),normalise="Y")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.