cd: Coefficient of Dispersion - A Measure of Relative Variability

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function measures relative inequality (or relative variation) of the data. Coefficient of Dispersion (CD) is the ratio of the Average Absolute Deviation from the Median (MAAD) to the Median of the data. NAs from the data are omitted.

Usage

1
cd(x)

Arguments

x

a numeric vector of data values.

Value

A list with the following numeric components.

statistic

the coefficient of dispersion.

data.name

a character string giving the name of the data.

Author(s)

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

References

Bonett, D. G. and Seier, E. (2005). Confidence interval for a coefficient of dispersion in nonnormal distributions. Biometrical Journal 48(1): 144–148.

Gastwirth, J. L. (1988). Statistical Reasoning in Law and Public Policy Vol 1. Academic Press, Boston, Toronto.

See Also

gini.index, j.maad

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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"])

## Measures of Relative Variability  - Coefficient of Dispersion
##
## data:  popdata[, "pop1900"]
## Coefficient of Dispersion = 0.1673

cd(popdata[,"pop1972"])

## Measures of Relative Variability  - Coefficient of Dispersion
##
## data:  popdata[, "pop1972"]
## Coefficient of Dispersion = 0.0081

lawstat documentation built on Nov. 23, 2017, 5:05 p.m.