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]

st: Drop observations with multiple zero values


From   "G. Anderson" <ga274@cam.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Drop observations with multiple zero values
Date   07 Jun 2013 21:02:28 +0100

Hi,

Does anybody know how I can drop observations if a number of values are zero?
I can do this by manually inputting 

drop if( A==0 & B==0 & C==0) 

But I was wondering if there was any easier way of doing this (especially 
when I have a lot of variables)- perhaps using varlist somehow?

Many Thanks,

Gareth *
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index