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: How to drop subjects with missing values on all variables


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: How to drop subjects with missing values on all variables
Date   Mon, 30 Jan 2012 20:29:38 +0000

-dropmiss- (SJ) has an option to drop observations (presumably what
you mean by "subjects").  In Stata, type -search dropmiss- and install
from the SJ 8-4 files.

. search dropmiss

Keyword search

        Keywords:  dropmiss
          Search:  (1) Official help files, FAQs, Examples, SJs, and STBs

Search of official help files, FAQs, Examples, SJs, and STBs


SJ-8-4  dm89_1  . . . . Dropping variables or observations with missing values
        (help dropmiss if installed)  . . . . . . . . . . . . . . .  N. J. Cox
        Q4/08   SJ 8(4):594
        update in style and content; added a new force option

STB-60  dm89  . . . . . Dropping variables or observations with missing values
        (help dropmiss if installed)  . . . . . . . . . . . . . . .  N. J. Cox
        3/01    pp.7--8; STB Reprints Vol 10, pp.44--46
        drops variables or observations with all values (optionally
        any values) missing



On Mon, Jan 30, 2012 at 8:21 PM, shihying yao <[email protected]> wrote:

> I am wondering if there is a quick way to identify and drop subjects
> with missing values on all variables (including string and numeric
> variables) in a dataset? I used to use "drop if" command. However,
> it'd get annoying if there are a lot of variables.
>
*
*   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