| empMoments | R Documentation | 
Calculates the first four empirical moments (mean, variance, skewness, kurtosis) of a numeric vector.
empMoments(x)
| x | (numeric) vector containing the data set. | 
Named vector of length 4 containing mean, variance, 
skewness and kurtosis (in this order).
Martin Becker martin.becker@mx.uni-saarland.de
PearsonDS-package
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.