Hi I have two variables comment_lawyer (numeric variable) and comment_other (string variable).
comment_lawyer has 2 values: 0 (no lawyer) and 1 (yes lawyer). comment_other has values such as "therapist", "lawyer", "major lawyer", "doctor" etc.
There were errors in data entering so that some "lawyer" responses were entered into comment_other instead of comment_lawyer. I am trying to recode the comment_lawyer variable so that any value that accessed a lawyer, based on the comment_lawyer and comment_other, are recoded correctly. I am only trying to recode where the word "lawyer" is explicitly stated in values in the comment_other variable (i.e. "lawyer" would be included, "major lawyer" would be included etc. etc.)
I am having difficulty using the recode command for this (assuming this is the right code), any help would be greatly appreciated!
comment_lawyer has 2 values: 0 (no lawyer) and 1 (yes lawyer). comment_other has values such as "therapist", "lawyer", "major lawyer", "doctor" etc.
There were errors in data entering so that some "lawyer" responses were entered into comment_other instead of comment_lawyer. I am trying to recode the comment_lawyer variable so that any value that accessed a lawyer, based on the comment_lawyer and comment_other, are recoded correctly. I am only trying to recode where the word "lawyer" is explicitly stated in values in the comment_other variable (i.e. "lawyer" would be included, "major lawyer" would be included etc. etc.)
I am having difficulty using the recode command for this (assuming this is the right code), any help would be greatly appreciated!

Comment