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 on April 23, and its replacement, is already up and running.

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

st: Re: Re: Dealing with missing values

From   Clyde B Schechter <>
To   "" <>
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:

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