I apologize if this question seems elemental, but I could not figure out how to do this after reading the related documentations.
I want to merge the master dataset with two datasets like so:
A:
B:
Into:
If I merge the master dataset (with household demographics) with A, Household doesn't uniquely identify observations when trying to merge with B. If I merge with B first, the dataset doesn't uniquely identify with A. I could add "Loan of Household (No.)" into A as missing values and then do a merge with varlist Household Loan, but is there a more rigid way of doing it? TIA.
I want to merge the master dataset with two datasets like so:
A:
Household | Person |
1 | 1 |
1 | 2 |
Household | Loan of Household (No.) |
1 | 1 |
1 | 2 |
Household | Person | Loan of Household |
1 | 1 | 1 |
1 | 2 | 1 |
1 | 1 | 2 |
1 | 2 | 2 |
Comment