Dear Statalisters,
I have individual level data for years 2007 and 2009 for many variables. I'm trying to look at the changes between 2007 and 2009. For instance, I'd like to focus on the labor market outcomes and see which individuals went from being employed to unemployed (and conversely) and which individuals went from having no labor contract to having a labor contract or self-employed. Is there any way I can track these changes with a relatively simple command and neatly regroup them in a table?
For example, I want to track the change of individual with Personnalnumber=100501 going from laborcontract=1 to laborcontract=4.
Thank you for your help!!
I have individual level data for years 2007 and 2009 for many variables. I'm trying to look at the changes between 2007 and 2009. For instance, I'd like to focus on the labor market outcomes and see which individuals went from being employed to unemployed (and conversely) and which individuals went from having no labor contract to having a labor contract or self-employed. Is there any way I can track these changes with a relatively simple command and neatly regroup them in a table?
For example, I want to track the change of individual with Personnalnumber=100501 going from laborcontract=1 to laborcontract=4.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long Personnalnumber int year byte laborcontract 100501 2009 4 100501 2007 1 101401 2009 2 101401 2007 2 102501 2009 6 102501 2007 6 102502 2007 2 102502 2009 6 103101 2009 3 103101 2007 4 103102 2009 3 103102 2007 4 103103 2009 . 103103 2007 . 103104 2009 . 103104 2007 . 103301 2009 2 103301 2007 3 103501 2007 2 103501 2009 2 103901 2007 1 103901 2009 1 end
Comment