Hey!
I need to calculate the months of unemployment from the time period 2001 - 2012. This variable "months of unemployment" should show the sum of the total duration of unemployment in months of every person from 2001 - 2012.
For example how many months a person was registered as unemployed in 2001, also in 2002, but then in 2003 the person was not registered as unemployed anymore.
I have following variables:
- pid: describes the personal identification number
- syear: describes the survey years, I need the years from 2001-2012
- unemployedprevious: describes if a person was registered as unemployed in t-1 (registered as unemployed in the previous year) - I only have this variable from t-1
- unemployedpreviousinmonths: months from january to december (in the previous year), describes how many months a person was registered as unemployed in t-1 - I only have this variable from t-1
Could anyone please help me to find the right command in stata to get the months of unemployment?
Thank you very much.
Regards
Tina
I need to calculate the months of unemployment from the time period 2001 - 2012. This variable "months of unemployment" should show the sum of the total duration of unemployment in months of every person from 2001 - 2012.
For example how many months a person was registered as unemployed in 2001, also in 2002, but then in 2003 the person was not registered as unemployed anymore.
I have following variables:
- pid: describes the personal identification number
- syear: describes the survey years, I need the years from 2001-2012
- unemployedprevious: describes if a person was registered as unemployed in t-1 (registered as unemployed in the previous year) - I only have this variable from t-1
- unemployedpreviousinmonths: months from january to december (in the previous year), describes how many months a person was registered as unemployed in t-1 - I only have this variable from t-1
Could anyone please help me to find the right command in stata to get the months of unemployment?
Thank you very much.
Regards
Tina
Comment