Hi,
I have a database in STATA with a similar structure:
id start_date end_date job_type
1 1990 1992 1
2 1991 1992 2
3 1992 1993 1
And I would like to transform it like that:
id date job_type
1 1990 1
1 1991 1
1 1992 1
1 1993 .
2 1990 .
2 1991 2
2 1992 2
2 1993 .
3 1990 .
3 1991 .
3 1992 1
3 1993 1
I have created y_start y_end date variables but after that, I am stuck in the creation of the macro to transform the file. Anyone could help? thanks
I have a database in STATA with a similar structure:
id start_date end_date job_type
1 1990 1992 1
2 1991 1992 2
3 1992 1993 1
And I would like to transform it like that:
id date job_type
1 1990 1
1 1991 1
1 1992 1
1 1993 .
2 1990 .
2 1991 2
2 1992 2
2 1993 .
3 1990 .
3 1991 .
3 1992 1
3 1993 1
I have created y_start y_end date variables but after that, I am stuck in the creation of the macro to transform the file. Anyone could help? thanks
Comment