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

st: RE: clonevar


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: clonevar
Date   Tue, 12 Oct 2004 11:11:05 +0100

Fred Wolfe doesn't like this error message 
produced by -clonevar- (a command added 
to official Stata on 5 October 2004)
when he is trying to assign to an existing 
variable.  

In effect, Fred is being reminded that 
-clonevar- is for producing new variables, 
and he is expected to infer that the problem 
in his case is that he is not using 
a new variable name. 

As Richard Williams surmised, 
a more direct error message is easy to 
produce. I've cloned -clonevar- to that 
effect and we'll see if StataCorp like my 
genetic engineering. 

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

Fred Wolfe
 
> -clonevar- reports an error incorrectly:
> 
> 
> . clonevar tpulmev = pulmev
> (8070 missing values generated)
> 
> . clonevar tpulmev = pulmev
> syntax is clonevar newvar = varname ...
> r(198);
> 
> It should probably report that tpulmev already exists rather 
> than its error 
> statement (which isn't false, but is open to many interpretations).
> 

*
*   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