Hello all,
Is it possible in Stata to operate on only a certain subgroup of your data set while only sorting on one specific variable? By this I mean something along the lines of:
by var1 var2 var3, sort(var4): gen wanted= var1/var2
Those someone know if this is possible?
Is it possible in Stata to operate on only a certain subgroup of your data set while only sorting on one specific variable? By this I mean something along the lines of:
by var1 var2 var3, sort(var4): gen wanted= var1/var2
Those someone know if this is possible?

Comment