Morning,
I am working with some Chilean longitudinal data that has quite rich data on participants work history. I have information on their previous employment, down to the year and month they started and ended each employment activity. I want to create a panel with these observations for every month, I already have the date variable sorted, and no problem carrying over observations for each row when the employment doesn't change.
However, for the individuals who have multiple activities, I need to shift down the start / finish dates to correspond with my date variable, as is the case with the individual in the example. Therefore is there anyway to do this, conditioning on whether the start_date is less or equal to the date or something?
Any help/advice is greatly appreciated. Thanks.
I am working with some Chilean longitudinal data that has quite rich data on participants work history. I have information on their previous employment, down to the year and month they started and ended each employment activity. I want to create a panel with these observations for every month, I already have the date variable sorted, and no problem carrying over observations for each row when the employment doesn't change.
However, for the individuals who have multiple activities, I need to shift down the start / finish dates to correspond with my date variable, as is the case with the individual in the example. Therefore is there anyway to do this, conditioning on whether the start_date is less or equal to the date or something?
Any help/advice is greatly appreciated. Thanks.

Comment