Dear Stata users,
I am struggling with the following issue:
I need to combine two personal ID's in order to create a unique dyadic-ID (an ID that uniquely identifies a relationship between person A and person B).
I tried the command - egen concat -, and apparently it seems to work. The problem is that, since my ID's are very long, the resultant dyadic-ID is not showed in its whole lenght, but in scientific format with the letter e. So, I end up with several dyadic-ID's with the same value, since their real number of digits is higher than the number of digit showed by Stata (at least, I intepreted in this way what happened).
Do you have any clue on how to solve?
Here the data
Thanks a lot, G
I am struggling with the following issue:
I need to combine two personal ID's in order to create a unique dyadic-ID (an ID that uniquely identifies a relationship between person A and person B).
I tried the command - egen concat -, and apparently it seems to work. The problem is that, since my ID's are very long, the resultant dyadic-ID is not showed in its whole lenght, but in scientific format with the letter e. So, I end up with several dyadic-ID's with the same value, since their real number of digits is higher than the number of digit showed by Stata (at least, I intepreted in this way what happened).
Do you have any clue on how to solve?
Here the data
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long(pidp apidp) 476594335 476594339 1156943847 1156943851 748322335 748322339 1428284927 1428284931 1089950939 1089950943 end
Comment