cd: Coefficient of Dispersion - a Measure of Relative Variability

View source: R/cd.R

cdR Documentation

Coefficient of Dispersion – a Measure of Relative Variability

Description

Measure of relative inequality (or relative variation) of the data. Coefficient of dispersion (CD) is the ratio of the mean absolute deviation from the median (MAAD) to the median of the data. NAs from the data are omitted. See \insertCiteGastwirth_1988v1;textuallawstat and \insertCiteBonett_Seier_2006;textuallawstat.

Usage

cd(x)

Arguments

x

a numeric vector of data values.

Value

The coefficient of dispersion.

Author(s)

Wallace Hui, Yulia R. Gel, Joseph L. Gastwirth, Weiwen Miao

References

\insertAllCited

See Also

gini.index, j.maad

Examples

## The Baker v. Carr Case: one-person-one-vote decision. 
## Measure of Relative Inequality of Population data in 33 districts 
## of the Tennessee Legislature in 1900 and 1972. See 
## popdata (see Gastwirth, 1988).

data(popdata)
cd(popdata[,"pop1900"])
cd(popdata[,"pop1972"])


lawstat documentation built on April 6, 2023, 1:06 a.m.

Related to cd in lawstat...