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 . .
endFor 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!
0 Response to how to calculate the hhi index for a list variables?
Post a Comment