Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: -Simulate- and dropping variables


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: -Simulate- and dropping variables
Date   Mon, 20 Aug 2007 15:25:31 +0100

How about 

. capture drop abc* 

? 

Nick 
n.j.cox@durham.ac.uk 

Rachel
 
> 2. I have a large number of variables] with the same stem "abc10 abc11
> abc12....abc99" I'd like to drop all variables with an abc* prefix if
> any such variables currently exist within the stem.
> 
>  I've tried using -isvar-, but--from my reading--that requires me to
> list out each of these variables.  Is there an easier way?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index