Statalist


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

st: RE: check whether a variable has any missing values


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: check whether a variable has any missing values
Date   Sun, 29 Mar 2009 17:33:57 +0100

Jacob Wegelin posted a program based on repeated -tabulate-s to 
check whether a variable contains any missing values. 

Eva Poen suggested -count if missing(varname)- 

David Airey suggested -assert missing(varname)- or -assert
!missing(varname)-. 

Martin Weiss suggested -mdesc-, a user-written program by Rose Ann
Medeiros. 

Kit Baum pointed out that no program is necessary as you can loop over
your variables using -foreach-. 

Those who answered are all correct. Nevertheless, a convenience wrapper
for Kit's approach is downloadable as -nmissing-. 

SJ-5-4  dm67_3  . . . . . . . . . .  Software update for nmissing and
npresent
        (help nmissing if installed)  . . . . . . . . . . . . . . .  N.
J. Cox
        Q4/05   SJ 5(4):607
        now produces saved results

The latest public version requires Stata 8, but older versions are also
downloadable: -search- for locations. 

Nick 
[email protected] 




*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index