thanks to nick and jeph for their suggestions.
nick - i wish i have thought about your generate and replace (a simple solution, yet elusive to me!). certainly appreciate your other pointers too.
jeph - thanks for the one-liner irecode. i do not have my [P] with me at the moment but quick check with my [R] i note that this function was not documented or referred to but nevertheless worked in my Stata 8.2 for my problem.
regards,
bw
_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted
*
* 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/