Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Scott Merryman <scott.merryman@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Dropping Observations |
Date | Mon, 31 Mar 2014 06:47:12 -0500 |
egen min = rowmin(-varlist-) drop if min < 0 drop min Scott On Mon, Mar 31, 2014 at 6:18 AM, ömer limanlı <omerlimanli@yahoo.com.tr> wrote: > Hello. I need help about dropping observation. I have several variables and nearly 1350 obvervations. Some observations have negative (-) values, e.g. -1, -3, for some observation. How can I drop ALL observation who have any negative values for any variables? I tried "drop if", "keep if", for example, drop if siyasigorus < 0, but it did not work or i could not do properly. > * * 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/