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: Re: Re: Dealing with missing values
From 
 
Clyde B Schechter <[email protected]> 
To 
 
"[email protected]" <[email protected]> 
Subject 
 
st: Re: Re: Dealing with missing values 
Date 
 
Tue, 2 Apr 2013 14:12:30 +0000 
Following up on Joseph Coveney's suggestion that the value of Year that looks like "1990" might contain additional non-numeric characters that do not display, a more specific diagnosis of the problem could be achieved by
charlist Year if missing(real(Year))
I also agree with Nick Cox that it sounds like what you really want is best achieved with -destring- rather than using the date() function.  The above applies in either case, though.
Hope this helps.
Clyde Schechter
Dept. of Family & Social Medicine
Albert Einstein College of Medicine
Bronx, NY, USA
*
*   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/