View source: R/calc_skewness.r
calc_skewness | R Documentation |
Computation of the skewness, a measure of the asymmetry. This metric can be used to determine the shape of a variable, and whether it is symmetric or skewed.
calc_skewness(
x,
type = c("fisher_pearson", "bowley", "kelly", "pearson_median", "rao")
)
x |
A numeric vector |
type |
A character single value, that is the type of the skewness to be computed |
Currently, it is possible to compute the following metrics:
- Bowley skewness coefficient
- Fisher-Pearson skewness coefficient
- Kelly skewness coefficient
- Rao skewness coefficient
- Pearson median skewness coefficient
A numeric single value with the computed value.
x <- rnorm(100,1)
calc_skewness(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.