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

st: RE: Truncating data


From   "Hulley, Benjamin (NIH/NCI)" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Truncating data
Date   Wed, 8 Sep 2004 16:45:04 -0400

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/



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