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

st: drop if

From   Ana Gabriela Guerrero Serdan <[email protected]>
To   [email protected]
Subject   st: drop if
Date   Fri, 21 Dec 2007 10:32:01 -0800 (PST)

Dear all, 

Im using drop if to drop several observations, about a
100. I try using the following but receive an error

. drop if Incident=="x132a" |     Incident=="x355a" |
Incident=="x132b" |Incident=="x354a" |
Incident=="x353a" | Incident=="x353b" | 
Incident=="x355b" | 
invalid syntax

but when I drop one by one it works: 

. drop if Incident=="x132a"
(41 observations deleted)

. drop if  Incident=="x355a" 
(26 observations deleted)

Anyone knows why  I cannot use "|" in this case? 


Gaby Guerrero Serdan 

Deparment of Economics
Royal Holloway, University of London
Egham, Surrey
England, UK

Tel: +44 7912657259

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.
*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index