yep. works perfectly.
Thanks Ben.
Jake
--- In [email protected], "Hulley, Benjamin (NIH/NCI)"
<hulleyb@m...> wrote:
> Assuming x1 is numeric and all observations are 4 digits you could
>
> gen x2 = int(x1/100)
>
> -Ben
>
> *******************
> NCI/DCEG/GEB
> Room: EPS 7007
> Tel: (301) 402-1622
> Fax: (301) 402-4489
> *
> * 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/
*
* 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/