Meanwhile I found a real easy solution. One way to to it is, for example when the value for female is "2 female" your state sexn=input(sex,1.) and if turns sex into a mumeric variable sexn.
... View more
Thanks a lot Tom The problem is that I have many values like that. For example income is coded "1 21k-25k" "2 26k-30K" etc. Is there a way to extract just the numerical part of the value?
... View more
I need to read a cvs file that has value such as "1 female" (for the sex variable) and I would like to read this value into a numeric variable that will have the value of 1 for females Thanks Yoav
... View more