Hello.
I have a 2 column file: parents and their children. From this I need to build another file of brothers and half brothers, in which for each child of the first file they are identified, to the side by columns, each and every one of their brothers (2 parents in common) and half brothers (only one common father). That is, fom a file like this:
...I need to build a file like this:
How can I do it?
Thank you
I have a 2 column file: parents and their children. From this I need to build another file of brothers and half brothers, in which for each child of the first file they are identified, to the side by columns, each and every one of their brothers (2 parents in common) and half brothers (only one common father). That is, fom a file like this:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(par child) 1 10 1 11 1 12 2 10 2 15 end
...I need to build a file like this:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(b1 b2 b3 b4) 10 11 12 15 11 10 12 . 12 11 10 . 15 10 . . end
Thank you

Comment