Hi all,
I'm trying to make variable for the is basically a sum of squared proportions (a Berry Diversification Index: https://de.wikipedia.org/wiki/Berry-Index). I was wondering if there is an egen command I could use to speed up this process. It's a bit tedious doing it manually (as you can see in the attatched screen-shot), any suggestions would be appreciated.
Thanks
-Bryan
I'm trying to make variable for the is basically a sum of squared proportions (a Berry Diversification Index: https://de.wikipedia.org/wiki/Berry-Index). I was wondering if there is an egen command I could use to speed up this process. It's a bit tedious doing it manually (as you can see in the attatched screen-shot), any suggestions would be appreciated.
Thanks
-Bryan
Comment