calc_skewness: Skewness computation

View source: R/calc_skewness.r

calc_skewnessR Documentation

Skewness computation

Description

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

Value

A numeric single value with the computed value.

Examples


x <- rnorm(100,1)

calc_skewness(x)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.