Hi all.
I´m asking for your help on how to drop duplicates using an if command. I have a dataset consisting of a lot of people who were interviewed multiple times over a ten year period. I want to remove all the respondants who at any given point in time marked themselves as "homemakers" (4) when asked for current job situation (CJS).
I have tried to use the following code:
duplicates drop mergeID if cjs==4
stata responds the following:
option if not allowed
r(198);
I hope someone is able to help me
- Julia
I´m asking for your help on how to drop duplicates using an if command. I have a dataset consisting of a lot of people who were interviewed multiple times over a ten year period. I want to remove all the respondants who at any given point in time marked themselves as "homemakers" (4) when asked for current job situation (CJS).
I have tried to use the following code:
duplicates drop mergeID if cjs==4
stata responds the following:
option if not allowed
r(198);
I hope someone is able to help me
- Julia
Comment