Description Usage Arguments Details Value Author(s) References Examples
This function computes Teachman's index for quantifying diversity as variety.
1 | teachman.index(X, categories)
|
X |
A string vector with categorical data. |
categories |
The number of posible categories for the random variable. |
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.
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. |
Antonio Solanas, Rejina M. Selvam, Jose Navarro and David Leiva.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.