fun.moments.r {GLDEX} | R Documentation |
Calculate mean, variance, skewness and kurtosis of a numerical vector
Description
This function evaluates the mean, variance, skewness and kurtosis of a numerical vector. Missing values are automatically removed.
Usage
fun.moments.r(x, normalise = "N")
Arguments
x |
A numeric vector |
normalise |
"Y" if you want kurtosis to be calculated with reference to kurtosis = 0 under Normal distribution. Default is "N". |
Value
A vector of mean, variance, skewness and kurtosis.
Note
Please contact the author directly if you find a bug!
Author(s)
Steve Su
See Also
Examples
fun.moments.r(rnorm(1000))
fun.moments.r(rnorm(1000),normalise="Y")
[Package GLDEX version 2.0.0.9.3 Index]