Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: problem with -capture drop-


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: Re: problem with -capture drop-
Date   Tue, 21 Oct 2003 16:18:37 -0500

At 01:58 PM 10/21/2003 -0700, you wrote:
Thanks for the explanation, but I still cannot fathom the logic of
this implementation. If I want to drop a single or all variables
begining with r, I shall use a wildcard like r*, no matter whether I
have only one variable beginning with r in the dataset or not. If I
want to drop the literatral "r", I shall be able to do so by
specifying -capture drop r-.

Anyway, the practical issue here is: Is there a way to stop Stata
from playing smart in this type of situation? Thanks.

The advantage of abbreviation that Stata gives sometime causes problems. The solution is to use a unique name for your variables. For example. _resid or _r, but not both. That usually prevents problems from me.

Fred Wolfe


Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125 Fax (316) 263-0761
[email protected]


*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index