Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Truncating data


From   "jake10002002" <jake10002002@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Truncating data
Date   Wed, 08 Sep 2004 20:58:34 -0000

yep. works perfectly.
Thanks Ben.
Jake
--- In statalist@yahoogroups.com, "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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index