I am trying to set my variables for gender to equal 1=female and 0= male this is the code that i am using: data want; set have; if GENDER = "female" then newgender = 0; else newgender = 1; run; data want; set have; if GENDER = "male" then newgender = 1; else newgender = 0; run; However, when i run this it sets females and males to 1 and not 1= female and males=0. Is there another way to go about this?
... View more