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

RE: revising -rename- [was:RE: st: quick question]


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: revising -rename- [was:RE: st: quick question]
Date   Thu, 26 Feb 2004 16:28:32 -0000

If that were my program I would throw the request 
straight back at the user. I would never indulge 
a list with an odd number of names. 

Nick 
[email protected] 

Roger Newson
> 
> For what it's worth, I prefer Syntax 2', because, that way, 
> it is clear 
> which oldname is to be replaced with which newname. That is 
> why I used 
> (essentially) Syntax 2' in the -rename()- options of 
> -descsave-, -parmest- 
> and -parmby- (available either on SSC or on my website as 
> specified in my 
> signature). However, if you use Syntax 2', then it is 
> probably a good idea 
> to include a diagnostic in the case of an odd number of names, such as
> 
> Warning: odd number of variable names in rename list - last 
> one ignored
> 
> (as used by my programs) or possibly a stronger error-level 
> diagnostic.

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