Statalist


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

Re: st: drop if


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: drop if
Date   Fri, 21 Dec 2007 13:41:12 -0500

Ana Gabriela Guerrero Serdan <[email protected]>:

You have an extra | on the end of your command.  Try also

drop if inlist(Incident,"x132a","x355a","x132b","x354a","x353a","x353b","x355b")

On Dec 21, 2007 1:32 PM, Ana Gabriela Guerrero Serdan
<[email protected]> 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);
>
*
*   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