Learn R Programming

fBasics (version 4041.97)

sampleRobMoments: Robust moments for the GLD

Description

Computes the first four robust moments for the Normal Inverse Gaussian Distribution.

Usage

sampleMED(x)
sampleIQR(x)
sampleSKEW(x)
sampleKURT(x)

Value

a named numerical value. The name is one of MED, IQR,

SKEW, or KURT, obtained by dropping the sample prefix from the name of the corresponding function.

Arguments

x

numeric vector, the sample values.

Author

Diethelm Wuertz

Examples

Run this code
## Sample
x <- rt(100, 4)
   
## Median
sampleMED(x)
 
## Inter-quartile Range
sampleIQR(x)
 
## Robust Skewness
sampleSKEW(x)
   
## Robust Kurtosis
sampleKURT(x)

Run the code above in your browser using DataLab