I will try to make my post #13 clearer.
There is no way to combine two 10-digit numbers into a 20-digit number to serve as a dyadic-ID of the sort you claim to need - one that you can read and tell which two members are in the dyad - in Stata.
You will have to make do with the approach given in post #7 which yields an arbitrary number as a dyadic-ID. Note that your data will continue to include pidp and apidp so you will be able to identify the members of any given dyad, despite the arbitrary number assigned to it, for example
There is no way to combine two 10-digit numbers into a 20-digit number to serve as a dyadic-ID of the sort you claim to need - one that you can read and tell which two members are in the dyad - in Stata.
You will have to make do with the approach given in post #7 which yields an arbitrary number as a dyadic-ID. Note that your data will continue to include pidp and apidp so you will be able to identify the members of any given dyad, despite the arbitrary number assigned to it, for example
Code:
list pidp apidp if id==45378
Comment