Skip to contents

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

Value

A numeric single value with the computed value.

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