Hi - I have two variables that I'd like to merge with their labels (I have gender represented in two datasets, so there would be no overlap in the same variable in the two datasets) but when I do concat, I'm getting the spaces in front and behind for the missing var's... advice?
Code:
egen GENDER3=concat(v_q1 c_q1), decode p(" ")
. tab GENDER3
GENDER3 | Freq. Percent Cum.
------------+-----------------------------------
. Female | 76 9.45 9.45
. Male | 326 40.55 50.00
Female . | 2 0.25 50.25
Male . | 400 49.75 100.00
------------+-----------------------------------
Total | 804 100.00

Comment