Hi there,
I am using panel data on employment, and want to delete all observations on a specific individuals if, when that individual is first observed. they are unemployed. So far, I have a dummy variable called 'unemployed' which equals 1 if that individual is unemployed at that point in time. I also have a variable called 'first' which equals 1 the first time the person's ID appears.
However, I can't work out how to get STATA to drop all observations on an individual if they are unemployed during the first observation. I have tried ''drop if unemployed==1 & first==1'' but that only drops that observation on the individual, not all observations on that individual.
I would greatly appreciate any help! Thanks!
I am using panel data on employment, and want to delete all observations on a specific individuals if, when that individual is first observed. they are unemployed. So far, I have a dummy variable called 'unemployed' which equals 1 if that individual is unemployed at that point in time. I also have a variable called 'first' which equals 1 the first time the person's ID appears.
However, I can't work out how to get STATA to drop all observations on an individual if they are unemployed during the first observation. I have tried ''drop if unemployed==1 & first==1'' but that only drops that observation on the individual, not all observations on that individual.
I would greatly appreciate any help! Thanks!
Comment