Description Usage Arguments Details Value Examples
skewness
calculates the skewness
1 | skewness(x, na.rm = T)
|
x |
a numeric vector, matrix or a data.frame |
na.rm |
(logical) Should missing values be removed? |
This function calculates the skewness of data which is a measure of the asymmetry of the probability distribution of a real-valued random variable about its mean. The formula used is:
\frac{E[(X-μ)^{3}]}{(E[(X-μ)^2])^\frac{3}{2}}
. This formula is the typical definition used in many older textbooks and wikipedia
returns a single value if x
is a vector, otherwise a named
vector of size = ncol(x)
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.