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:34:59 -0500

For error 130, the Stata 13 help says

"you specified an expression that is too long for Stata to process -- the expression contains more than 249 pairs of nested parentheses or more than 800 dyadic operators. (For Small Stata, the limit is 66 dyadic operators.) Break the expression into smaller parts. "

You could break a -drop if- into multiple statements.

Another possibility would be to create a variable coded 1 if it was in the keep list and 0 otherwise.


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