Statalist


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

Re: st: drop if


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: drop if
Date   Fri, 21 Dec 2007 13:42:49 -0500

At 01:32 PM 12/21/2007, Ana Gabriela Guerrero Serdan wrote:
Dear all,

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

. drop if Incident=="x132a" |     Incident=="x355a" |
Incident=="x132b" |Incident=="x354a" |
Incident=="x353a" | Incident=="x353b" |
Incident=="x355b" |
invalid syntax
r(198);
That extraneous | at the end may be doing you in.  Try dropping it.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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