nick, thank you for your response. as always, a thoughful one too. your suggestions are closer to what i wanted. i like the fact that at the end of your solution yes is intuitively coded as 1 whilst no is coded as 0 where martin's suggestion was vice versa (tho easily changed).
more invaluably - i am introduced to cond(x,a,b,c), which i looked up at [R] functions under programming functions!
season's greetings,
bw
_________________________________________________________________
It’s the same Hotmail®. If by “same” you mean up to 70% faster.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/