Hello all,
Suppose I have this main data set:
Now I want to combine the information in the following data to the above one:
I just want the "macro" data added to the first data set matching Year & State. I having really trouble with this when I use many-to-one merging, I think my data set is getting bigger!
Can anyone help me?
Suppose I have this main data set:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(ID wage Year State) 3 600 2001 4 1 100 2001 5 2 40 2001 5 2 . 2002 5 3 90 2002 5 1 200 2002 5 3 1000 2003 4 2 500 2003 6 1 300 2003 6 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(Year State Macro) 2001 4 100 2002 4 200 2003 4 300 2001 5 400 2002 5 500 2003 5 600 2001 6 100 2002 6 200 2003 6 300 end
I just want the "macro" data added to the first data set matching Year & State. I having really trouble with this when I use many-to-one merging, I think my data set is getting bigger!
Can anyone help me?

Comment