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: Dropping Observations
From
Scott Merryman <[email protected]>
To
[email protected]
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ı <[email protected]> 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/