fun.moments.r: Calculate mean, variance, skewness and kurtosis of a...

fun.moments.rR 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

fun.theo.mv.gld

Examples


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


GLDEX documentation built on Aug. 21, 2023, 9:08 a.m.

Related to fun.moments.r in GLDEX...