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: Too many keep statements: was: Re: st: Date: Sun, 8 Sep 2013 23:54:39 +0000
From
Red Owl <[email protected]>
To
[email protected]
Subject
Re: Too many keep statements: was: Re: st: Date: Sun, 8 Sep 2013 23:54:39 +0000
Date
Sun, 8 Sep 2013 21:01:55 -0400
Drawing on parts of Richard Williams' and Steve Samuels' suggestions,
as well as on my own earlier comment, you might try:
encode type, gen(typex)
keep if inlist(typex,1,3,4,5,19,21,34 . . .)
-inlist- will accept up to 255 reals.
Red Owl
[email protected]
*
* 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/