I have a set of data that involves education levels (SCHOOLING) and ages (AGE). I want to generate a dummy variable to indicate whether or not an individual is within two years of the schooling level they should be at for their age. For example if a 9 year old should have 3 years of schooling, I want the dummy variable to be a 1 if they have 1 to 5 years of schooling and a 0 otherwise. How do I create such a dummy variable (AT_LEVEL) to indicate that SCHOOLING is within the range corresponding to AGE?
-
Login or Register
- Log in with
Comment