Description Usage Arguments Value References Examples
View source: R/utility_functions.R
A function to compute the first four moments (i.e., the mean, variance, skew, and kurtosis) for a vector of data.
1 |
x |
a numerical vector of values. |
A list consisting of...
n: The number of observations.
mean: The mean of the data (The 1st moment).
var: The variance of the data (The 2nd moment).
sd: The standard deviation of the data.
skew: The skewness of the data (The 3rd moment).
kurtosis: The kurtosis of the data (The fourth moment).
Terriberry, T. B. (2007). Computing Higher-Order Moments Online. Retrieved from https://people.xiph.org/~tterribe/notes/homs.html.
1 2 | x = rnorm( 100 )
higherOrderMoments( x )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.