Statalist


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

Re: st: drop if


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
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:  Richard.A.Williams.5@ND.Edu
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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index