Naturally, I have the two surveys in separate .dta files.
What I'd like do is statistically match individuals from survey #2 to individuals in survey #1 conditional on a variety of demographic variables. For the purposes of this question, let's assume I just have four: race, age, education, and sex.
For every individual in survey #1 of a given combination of those four variables, I'd like to randomly link to an individual in survey #2 who matches on the same four variables.
One complication is that although the weighted population in both surveys is (in principle) the same, the two surveys have a different number of raw cells. So ideally the solution would incorporate the weights (let's call that variable weight1 in survey #1 and weight2 in survey #2).
An inefficient method I've tried for doing this is calling
Code:
expand weight2
0 Response to Random match between two large surveys with weights
Post a Comment