Possibly ypu seek -inlist()-. 
Nick 
[email protected] 
Oleksandr Shepotylo
 
> I would like to create a variable that will group 
> observations based on
> values of anther variable. For example, if region is one of 
> 50 states I need
> to divide them into bigger geographical areas: east, west, 
> north, south.
> Obviously, I can do it by brute force approach, but I hope 
> there is some
> magic command that simplifies the procedure.
*
*   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/