Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Removing "." (in string format) from a variable


From   Michael Stewart <[email protected]>
To   [email protected]
Subject   st: Removing "." (in string format) from a variable
Date   Wed, 28 Nov 2012 19:16:38 -0500

hello ,

i am working with ICD9 codes and i had to convert the icd-9 codes to
string format
Unfortunately , I got some values like following with only dots (as
shown below).
 |--------------|
 |   996.51 |
 |        .     |
 |        .    |
 |        .    |
 |   327.23 |
 |----------   |
 |        .    |
 |        .    |
 |        .    |
 |        .    |
 |        .    |
 |-------------|
 |    555.9 |
 +----------+

As I try to use the icd9 check commnd, I get that the variable has
invalid icd9 values and following output

. |        .   Invalid placement of period |
. |        .   Invalid placement of period |
 |        .   Invalid placement of period |
 |        .   Invalid placement of period |
 |        .   Invalid placement of period |
|----------------------------------------|

Is there any way to just remove   "." (in string format) from the variable.


-- 
Thank you ,
Yours Sincerely,
Mike.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index