Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Re: Re: na.omit synonym


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Re: Re: na.omit synonym
Date   Wed, 20 Jun 2007 16:47:20 +0100

Several very good ideas. Here is another possibility. I tried 

. search drop missing

and find that there is a program by someone using my name 

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 

Of course, -dropmiss- does not know anything about your special meaning 
for -1. For that, you need to apply other solutions first, as suggested. 

Nick 
[email protected] 

bunny , lautloscrew.com

> hmm,
> 
> it looks like  it would work though :) . sure there are many ways,  
> probably some drop if with and/or and all variables would also work...
> i just thought there's a syntax that drops all missings directly. in  
> a way this is what neil suggested....
> 
> thx everybody!!

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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