Hi, I have a set of categorical variables extracted from survey dataset and as part of the responses I have observations with "don't know" or "dna" which I would like to drop. But I am getting error r(111). Example I want to drop observations where variable 'qhealth' has responses of "dna". I type the following code:
drop if qhealth==dna
But I get error saying dna not found
I also tried:
drop if qhealth=="dna"
But I get error saying type mismatch
Anyone can help me figure out what I'm doing wrong?
Thanks in advance!
drop if qhealth==dna
But I get error saying dna not found
I also tried:
drop if qhealth=="dna"
But I get error saying type mismatch
Anyone can help me figure out what I'm doing wrong?
Thanks in advance!
Comment