Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input float(pr1_duration pr2_duration) byte(pr3_duration pr4_duration)
       6   . . .
    7.05   0 0 .
6.466667   0 . .
     7.3   0 . .
7.466667 .45 0 .
    5.25   . . .
6.783333   0 . .
    10.6   0 . .
8.516666   0 0 .
7.016667   0 . .
end
There exists one to four presenters, I want to calculate the duration concentration for the presenters using hhi. How to do this?
For observation 1, the calculation should be "(6/6)^2", for observaton 5, the calculation should be "(7.466667/(7.466667+.45))^2+(.45/(7.466667+.45))^2", do we have a user-command to do this?
Thanks a ton!