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]

Re: st: List of variables with all missing (.) values?


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: List of variables with all missing (.) values?
Date   Thu, 24 Feb 2011 11:15:45 +0000

Maarten kindly pointed to my -ds3-.

-ds3- I consider to be superseded by my -findname- (unless you are
using Stata 7 or 8, in which case you cannot use -findname-).

-search findname- in an up-to-date Stata (download the fixed version,
not the previous one).

findname, all(missing(@))

is the equivalent syntax to Maarten's suggestion. In fact, this finds
string variables that are all missing as well.

findname, type(numeric) any(missing(@))

finds numeric variables that are all missing.

Also, there is a difference between all missing and all equal to
sysmiss .  -- which may or may not be important in your case.

Also, -search nmissing- and -search dropmiss- for other programs in
this territory,

Nick

On Thu, Feb 24, 2011 at 10:58 AM, Maarten buis <[email protected]> wrote:

> --- On Thu, 24/2/11, Michael Costello wrote:
>> Is there a way to get a list of variables which have
>> every value set to missing (.)?
>
> ssc install ds3
> ds3, all(missing(X))
>
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index