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
Related Posts with How to write a more efficient code calculating a weighted index?
Using ppmlhdfe with exporter-time, importer-time and pair fixed effects - Gravity modelDear all, I try to figure out the equivalent of my ppml command to ppmlhdfe command, including expo…
option 'nomeans' in multigroup analysesHello I am currently working on a multi-group SEM. I've always fitted models with the option 'nomea…
Praising Stata outside the Stata ForumInteresting, I think: https://www.theanalysisfactor.com/wo...is-with-stata/ …
Count/aggregate occurences of a specific value: Soccer dataHello everyone I have match data (soccer) of several leagues, incl. timestamp, home team, away time…
Plotting between-individual variance from multilevel growth curve model with splinesDear Statalist, *this is my first post, I hope I haven't gotten it all wrong I am estimating growth …
Subscribe to:
Post Comments (Atom)
0 Response to How to write a more efficient code calculating a weighted index?
Post a Comment