Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: finding incorrectly entered data


From   Michael Eisenberg <meisenberg713@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: finding incorrectly entered data
Date   Thu, 16 Jun 2011 16:01:00 -0500

thanks to all for your brilliant replies.  they worked.

On Wed, Jun 15, 2011 at 3:16 PM, Phil Schumm <pschumm@uchicago.edu> wrote:
> On Jun 15, 2011, at 3:04 PM, Michael Eisenberg wrote:
>>
>> I have a list of several thousand patients with a lab test and days from
>> the test recorded.  I'd like to be able to analyze the days from test data
>> as a continuous variable.  Unfortunately, some of the data in the days from
>> lab test are not numeric and have odd characters (e.g. ?, +-5, na, etc).
>>  See below.  Thus, I cannot run any summary statistics on it.
>>
>> I cannot manually look through all the data due to the number of men to
>> find the nonnumeric data.  Is there a way I can have stata somehow flag the
>> rows with nonnumeric data?
>
>
>    destring daysfromtest, gen(foo) force
>    tab daysfromtest if mi(foo)
>
>
> -- Phil
>
> *
> *   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/
>

*
*   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/


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