Hi,
I use the following code to calculate a weighted zipf index:
gen zipfindlight`var' = zipf13*ind13`var' + zipf14*ind14`var' + zipf15*ind15`var' + zipf17*ind17`var' + zipf18*ind18`var' + zipf19*ind19`var' + zipf20*ind20`var' + zipf21*ind21`var' + zipf22*ind22`var' + zipf23*ind23`var' + zipf24*ind24`var'
How to make it more efficient?
Thanks,
Linghui
0 Response to How to write a more efficient code calculating a weighted index?
Post a Comment