Hello,
I'm using episode-based data with daily information (see screenshot below, or download sample file here: http://doku.iab.de/fdz/siab/SIAB7510...aten_Stata.zip) . Broadly speaking, the database contains employment and unemployment spells for many different individuals over a period of about 35 years.
Now, I would like to generate a variable that contains the days of unemployment over a 5-year-window before the corresponding observation. I already created a variable which shows the unemployment duration of a specific unemployment spell ("unempl_dauer" in the screenshot) and a variable which sums up the duration of all unemployment spells up to this point ("tage_unempl" in the screenshot). Unfortunately, I'm struggling to generate a variable that is like "unempl_dauer" but ignores the duration of unemployment spells older than 5 years.
I would be very grateful for any suggestions how I can solve my problem.
Best regards,
Sebastian
I'm using episode-based data with daily information (see screenshot below, or download sample file here: http://doku.iab.de/fdz/siab/SIAB7510...aten_Stata.zip) . Broadly speaking, the database contains employment and unemployment spells for many different individuals over a period of about 35 years.
Now, I would like to generate a variable that contains the days of unemployment over a 5-year-window before the corresponding observation. I already created a variable which shows the unemployment duration of a specific unemployment spell ("unempl_dauer" in the screenshot) and a variable which sums up the duration of all unemployment spells up to this point ("tage_unempl" in the screenshot). Unfortunately, I'm struggling to generate a variable that is like "unempl_dauer" but ignores the duration of unemployment spells older than 5 years.
I would be very grateful for any suggestions how I can solve my problem.
Best regards,
Sebastian
Comment