I want to generate
a new variable in Stata by grouping an old one according to its value characteristics. I have one variable called status
that reflects employment type and status, so it has values like "Manager", "Ex-Manager", "Employee", "Ex-Employee".
Now I want to generate
a new dummy variable that equals 1 if the person is still employed (contains "Manager" and "Employee") and equals 0 if the person is no longer employed ("Ex-Employee", "Ex-Manager").