Hi all,
I am looking for a way to calculate (in excel) a (seemingly) simple index of diversity. The function should give an outcome between 0 and 1, based on how the relative sizes of two groups.
For example, if there are 20 observations, then the function should only give '1' when there are 10 observations from group A, and ten from group B. The function should give '0' when all 20 observations are alloted to one of both groups. Values in between should represents fractions between 0 and 1.
Thanks in advance!