Sum calculations in Stata -


i have problems managing data in stata , tried search maybe search questions incorrect. m sorry if question existed. if pic see, should calculate countries. sum of same countries every id. have huge dataset, need fast , not loose time. ask me questionsstata

not entirely clear have in mind, sounds want:

bysort id country: generate count = _n 

if not, clearer example fewer countries helpful.


Comments