Learn R Programming

GLDEX (version 2.0.0.9.3)

fun.moments.r: 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")

Value

A vector of mean, variance, skewness and kurtosis.

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".

Author

Steve Su

See Also

fun.theo.mv.gld

Examples

Run this code

fun.moments.r(rnorm(1000))
fun.moments.r(rnorm(1000),normalise="Y")

Run the code above in your browser using DataLab