Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: List of variables with all missing (.) values? |
Date | Thu, 24 Feb 2011 13:27:27 +0000 |
There is a slip from -all()- to -any()- here which I hope was easy to spot. On Thu, Feb 24, 2011 at 11:15 AM, Nick Cox <njcoxstata@gmail.com> wrote: > 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 <maartenbuis@yahoo.co.uk> 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/