Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Jörg Eulenberger <j.eulenberger@web.de> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: How to extract text from Labels |
Date | Tue, 05 Jun 2012 17:50:21 +0200 |
Dear Statalisters, I have a problem with labels. In my Dataset are single items (binary) from a multiple option question. The label format of this variables are “[Text1]Text2”. Now I want to relabel the variables only with the Text in the square brackets (Text1). Any ideas for a syntax that i can use in a foreach-loop? Thanks a lot, Jörg * * 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/