Copying data from one dated panel to another
Posted: Thu Oct 23, 2014 2:43 pm
Hi,
I have one dataset saved in a dated panel with cross-section id structured as "XXX_YYY" (XXX-country code, YYY-industry code) over 1970-2010, and another dataset in a dated panel over 1960-2010 with cross-id "XXX". What I'm trying to do is copying the data in the second panel into the first one. The copied series would have the same data across industries but different across countries. I guess the challenge is to create a cross-id series in the second panel that also has the form XXX_YYY so that I can simply match-merge into the first one.
Is there a quick way of doing this? Any tip would be much appreciated.
Thanks,
Morak5
I have one dataset saved in a dated panel with cross-section id structured as "XXX_YYY" (XXX-country code, YYY-industry code) over 1970-2010, and another dataset in a dated panel over 1960-2010 with cross-id "XXX". What I'm trying to do is copying the data in the second panel into the first one. The copied series would have the same data across industries but different across countries. I guess the challenge is to create a cross-id series in the second panel that also has the form XXX_YYY so that I can simply match-merge into the first one.
Is there a quick way of doing this? Any tip would be much appreciated.
Thanks,
Morak5