teachman.index: Diversity as variety: Teachman's Index

Description Usage Arguments Details Value Author(s) References Examples

Description

This function computes Teachman's index for quantifying diversity as variety.

Usage

1
teachman.index(X, categories)

Arguments

X

A string vector with categorical data.

categories

The number of posible categories for the random variable.

Details

Teachman's index (1977) is defined as - ∑\limits_{i = 1}^k {p_i } \times \ln p_i, where p_i corresponds to the proportion of group members in ith category and k denotes the number of categories for an studied attribute. This index reaches its minimum value (0) when there are no differences among individuals regarding their classification in the variable of interest. The maximum value depends on the number of categories and on the fact that individuals can be evenly distributed in all categories. teachman.index also computes proper theoretical upper bound for Teachman's index as well as a normalized measure that allows researchers to get a measure that ranges from 0 to 1.

Value

The function returns a list of class blau with following components:

call

Function call.

categories

Levels of categorical variable.

teachman.index

Teachman's Index.

teachman.max

Maximum value of Teachman's Index.

teachman.norm

Normalized value of Teachman's Index.

Author(s)

Antonio Solanas, Rejina M. Selvam, Jose Navarro and David Leiva.

References

Teachman, J. D. (1980). Analysis of population diversity: Measures of qualitative variation. Sociological Methods & Research, 8, 341-362.

Solanas, A., Selvam, R. M., Navarro, J., & Leiva, D. (2010). On the measurement of diversity in organizations. Unpublished manuscript.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
g.3 <- c('F','A','P')
teachman.index(g.3,3)

g.4 <- c(rep('F',2),'A','P')
teachman.index(g.4,3)

g.5 <- c(rep('F',2),rep('A',2),'P')
teachman.index(g.5,3)

g.10 <- c(rep('F',6),rep('A',3),'P')
teachman.index(g.10,3)

DLEIVA/diversity documentation built on May 10, 2019, 1:14 a.m.