empMoments: Empirical Moments

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fit.r

Description

Calculates the first four empirical moments (mean, variance, skewness, kurtosis) of a numeric vector.

Usage

1

Arguments

x

(numeric) vector containing the data set.

Value

Named vector of length 4 containing mean, variance, skewness and kurtosis (in this order).

Author(s)

Martin Becker [email protected]

See Also

PearsonDS-package

Examples

1
2
3
4
## Generate sample with given (theoretical) moments
DATA <- rpearson(25000,moments=c(mean=1,variance=2,skewness=1,kurtosis=5))
## Calculate corresponding empirical moments
empMoments(DATA)

PearsonDS documentation built on July 18, 2017, 1:02 a.m.