Bookmark and Share

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: Date: Sun, 8 Sep 2013 23:54:39 +0000


From   Richard Williams <[email protected]>
To   [email protected], "[email protected]" <[email protected]>
Subject   Re: st: Date: Sun, 8 Sep 2013 23:54:39 +0000
Date   Sun, 08 Sep 2013 20:26:25 -0500

Would it be easier to use -drop if-? -drop if- could also be split into multiple commands if necessary.

At 06:54 PM 9/8/2013, HAKAN USLU wrote:
Hello All,

I hope someone can help me with this problem.
I am having problem with -keep if- command.
My do file is like this;

keep if type=="murder" | type=="theft" | type=="burglary" ....

I have more than 200 different crime types. When I run this command Stata gives me an error saying "too many Literals r(130)" if I put all 200 crime types in my list..Is there any other way for me to perform this operation?..

thanks in advance

Hakan Uslu

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

-------------------------------------------
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/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index