Skewness computation
calc_skewness.Rd
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.
Usage
calc_skewness(
x,
type = c("fisher_pearson", "bowley", "kelly", "pearson_median", "rao")
)
Arguments
- x
A numeric vector
- type
A character single value, that is the type of the skewness to be computed
Details
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
Examples
x <- rnorm(100,1)
calc_skewness(x)
#> [1] -0.006631249