Dear Statalisters
I am trying to recode a string variable and am having a hard time.
My command is as follows:
gen str8 race= PT_RACE
this command worked, I then tried to recode using the following command:
recode race=1 if PT_RACE==RAC101 (the race variable is coded as RAC101,
RAC102, etc.)
when I put this command in it reads:
=exp not allowed
what am I doing wrong? please help,
thanks
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/