skew | R Documentation |
The skewness is about the departure from symmetry of a frequency distribution. Therefore, It is about asymmetry. One way to assess asymmetry of a random variable is to compute an statistics representing its skewness. The current function an dimensionless statistics of the skewness of given vector.
skew(x, na.rm = TRUE)
x |
A numeric vector representing a random variable. |
na.rm |
Logical value to remove NA values. The default is set to TRUE. |
The skewness of a random variable is the third moment of the standardized variable. There are several ways of parameterizing an skewness estimator, such as depending on the third moment and the standard deviation of the random variable.
The value of the the skewness of given vector
Christian Salas-Eljatib.
y.var<-rnorm(100);x.var<-rbeta(100,.2,2)
skew(y.var)
skew(x.var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.