Wednesday, March 08, 2006
st: string function
I have a large file with patient's labs. The lab variable contains the lab result (a number) with the units (for example mg/dl) included. There are many variations to the way the units are reported: they may be capitalized or in parentheses or the units themselves may contain numbers.
I would like to create a variable that includes only the lab result. And if possible a separate variable with the units.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com * * 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/
Links to this post: