Good morning!
I have 2 files (observations = 43 617). In the first file are countries with a lot of information (in the example I will not write down them, just the necessary variables). In the second file is the unemployment information about the countries.
I want to merge these file, BUT unemployment rates are expected to have a delayed impact, affecting one’s job situation after some time, I want to assign respondents with the quarterly unemployment rate that prevailed in their respective countries three months before the date (month/year).
For example: Belgium 2004. April. (1. File) necessary Belgium 2004. Q1 -------> 4 (April) - 3 = 1 (January - Q1)
I show an example:
The first file:
The second file (it contains unemployment rate of country):
I have 2 files (observations = 43 617). In the first file are countries with a lot of information (in the example I will not write down them, just the necessary variables). In the second file is the unemployment information about the countries.
I want to merge these file, BUT unemployment rates are expected to have a delayed impact, affecting one’s job situation after some time, I want to assign respondents with the quarterly unemployment rate that prevailed in their respective countries three months before the date (month/year).
For example: Belgium 2004. April. (1. File) necessary Belgium 2004. Q1 -------> 4 (April) - 3 = 1 (January - Q1)
I show an example:
The first file:
| Country | Year | Month |
| Austria | 2004 | January |
| Austria | 2004 | June |
| Belgium | 2004 | April |
| Belgium | 2004 | May |
| Germany | 2004 | May |
| Germany | 2011 | May |
| Germany | 2013 | May |
| France | 2011 | September |
| France | 2013 | December |
| Country | Time | Value |
| Austria | 2003 - Q4 | 1.12 |
| Austria | 2004 - Q1 | 1.14 |
| Belgium | 2004 - Q1 | 1.23 |
| France | 2011 - Q2 | 1.56 |
| Germany | 2004 - Q1 | 1.33 |
| Germany | 2011 - Q1 | 1.39 |
| Germany | 2013 - Q1 | 1.30 |
| France | 2013 - Q3 | 1.51 |
- January, February, and March (Q1)
- April, May, and June (Q2)
- July, August, and September (Q3)
- October, November, and December (Q4)

Comment