Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Shubhabrata Mukherjee <joy_stat@yahoo.com> |
To | stata forum <statalist@hsphsun2.harvard.edu> |
Subject | st: Re: Drop variables based on variable label |
Date | Wed, 28 Dec 2011 09:42:40 -0800 (PST) |
Yes. This is indeed a very neat trick. Thanks a lot guys...!!! Joey ----- Original Message ----- From: Shubhabrata Mukherjee <joy_stat@yahoo.com> To: stata forum <statalist@hsphsun2.harvard.edu> Cc: Sent: Tuesday, December 27, 2011 9:01 PM Subject: Drop variables based on variable label Hi All, Is there a way to drop variables based on variable label? I have some variables (which are redundant) whose variable label start with 'rs'. E.g. var label v1 rs12 v2 s13 v3 rs14 v4 rs17 v5 s15 ........... ....... .... I want to drop the variables whose label starts with rs (v1, v3, v4,...). Any help is appreciated. Thanks, -Joey * * 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/