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: filter by value labels


From   daniel klein <[email protected]>
To   [email protected]
Subject   Re: st: filter by value labels
Date   Thu, 31 Mar 2011 19:08:01 +0200

I do not know, whether I undersatnd the problem, and if I do, I do not
know how one could do what you are asking for "on the fly".
The only solution I can think of, is to (temporary) -decode- your
variable (which substitutes values with their value label) and search
the resulting string variable using -strmatch-.
An alternative might be to loop over each value label, which will be
very slow and you probably do not want to do this.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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