Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Dudekula, Anwar" <dudekulaan@upmc.edu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: Need Help with converting String Variables to Numeric Variables |
Date | Mon, 18 Jun 2012 22:40:39 +0000 |
Dear Stata List Members , I am working on a data set of a hospital where one of the variables has string values as observations . I am able to convert numeric string values to numeric values using destring command. But I have some of the observations as "< 4", "<0.04","less than 0.1" which needs to be converted to zero . In Stata we have option to convert nonmumeric values to missing values , but I need to convert them to Zero . I would really appreciate guidance for the stata list members . Thank you , Sincerely Anwar * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/