Hi! I am trying to merge multiple panel datasets, but I don't know which is the appropriate way and my online search hasn't lead me anywhere.
Here's an illustration of my current (long) panel datasets.
Panel A
Panel B
Panel C
And here's what I'm trying to achieve:
*Notes
The common variables that I have are Country and Year.
I'm not trying to merge any variables or values among my Variables(1 to 6).
There is no data that I want to be lost.
xx represents any given value of the data (didn't put values so it wouldn't look messy)
Thanks!
Here's an illustration of my current (long) panel datasets.
Panel A
Country | Year | Variable1 | Variable2 |
A | 2016 | xx | xx |
A | 2015 | xx | xx |
A | 2014 | xx | xx |
B | 2016 | xx | xx |
Country | Year | Variable3 | Variable4 | Variable5 |
A | 2016 | xx | xx | xx |
A | 2015 | xx | xx | xx |
B | 2016 | xx | xx | xx |
Country | Year | Variable6 |
A | 2016 | xx |
A | 2015 | xx |
B | 2016 | xx |
Country | Year | Variable1 | Variable2 | Variable3 | Variable4 | Variable5 | Variable6 |
A | 2016 | xx | xx | xx | xx | xx | xx |
A | 2015 | xx | xx | xx | xx | xx | xx |
A | 2014 | xx | xx | xx | xx | xx | xx |
B | 2016 | xx | xx | xx | xx | xx | xx |
B | 2015 | xx | xx | xx | xx | xx | xx |
The common variables that I have are Country and Year.
I'm not trying to merge any variables or values among my Variables(1 to 6).
There is no data that I want to be lost.
xx represents any given value of the data (didn't put values so it wouldn't look messy)
Thanks!
Comment