OK, so along with creating the employment status variable, extra rows have to be added to the table to contain the unemployment episodes. That helps clarify what you are requesting.
I have more questions.
It appears that you ignore the first row in the table you have now, for pid 101 jobseq 1 with the missing end date. Is it the case that you ignore any row with missing end date if there is another row for the same pid and jobseq and start date that does not have a missing end date?
Your sample output does not have employment status for pid 101 after the end date of jobseq 2. Is that what you intended?
Looking at the last row in the table you have now, for pid 102 jobseq 2 with the missing end date. Is it the case that for any row with missing end date and no other row for the same pid and jobseq you assume the individual continued to be employed at that job at the time of the interview?
You show pid 101 as neither employed nor unemployed between August 2006 and the time of the interview. Is that correct?
You show pid 101 as both employed and unemployed in June 2001 and in June 2004, and pid 102 in June 2004 and in May 2005. Is that really what you want? When I've done work like this, usually each month is counted as either employed or unemployed.
You don't show sample data where the subject may have two jobs at the same time. Is that a possibility?
I have more questions.
It appears that you ignore the first row in the table you have now, for pid 101 jobseq 1 with the missing end date. Is it the case that you ignore any row with missing end date if there is another row for the same pid and jobseq and start date that does not have a missing end date?
Your sample output does not have employment status for pid 101 after the end date of jobseq 2. Is that what you intended?
Looking at the last row in the table you have now, for pid 102 jobseq 2 with the missing end date. Is it the case that for any row with missing end date and no other row for the same pid and jobseq you assume the individual continued to be employed at that job at the time of the interview?
You show pid 101 as neither employed nor unemployed between August 2006 and the time of the interview. Is that correct?
You show pid 101 as both employed and unemployed in June 2001 and in June 2004, and pid 102 in June 2004 and in May 2005. Is that really what you want? When I've done work like this, usually each month is counted as either employed or unemployed.
You don't show sample data where the subject may have two jobs at the same time. Is that a possibility?
Comment