ID | Qualification | Score |
A | BS | |
A | Graduated | |
A | MS | |
B | BS | |
B | Graduated | |
B | PhD |
For every ID (Identifier), I want to have a score of 0 for "Graduated" if ID already has BS.
I have tried the following code:
bysort ID : replace Score = 0 if Qualification=="Graduated" & Qualification=="BS"
But, sadly, it is not working. It says "(0 real changes made)"
Any suggestions?
I hope to hear from you.
Thank you very much.
0 Response to Question about replace with multiple Criteria based on identifier
Post a Comment