Statalist The Stata Listserver


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

RE: st: dataset containing duplicate variables names


From   "Steichen, Thomas J." <[email protected]>
To   <[email protected]>
Subject   RE: st: dataset containing duplicate variables names
Date   Thu, 5 Apr 2007 10:43:15 -0400

The clear distiction here is that third-party software created the data file. As long as Stata finds the key identifiers and data
structure to be valid it will open it. However, because of how Stata reads the data file for particular variables, it cannot access
a subsequent replicate-named variable, as it is not the first such variable in its variable table (Stata stops searching once it
finds the matching variable). 

I would attempt to sequentially rename these variables. I presume it will let you rename the first one, then the next one should
become accessible.  Try this and let the list know if it is a workable solution.

Tom

-----------------------------------
Thomas J. Steichen
[email protected]
-----------------------------------
 
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Svend Juul
Sent: Thursday, April 05, 2007 10:36 AM
To: [email protected]
Subject: Re: st: dataset containing duplicate variables names 

Emma Slaymaker happened to create a dataset with different variables having the same name by exporting a Stata version 6 dataset
from EpiData.
 
I could reproduce the finding, both on Stata version 8.2 and 9.2. It looks strange to me, too. How could such a thing exist?
 
Svend
 
________________________________________________________ 
 
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 
DK-8000 Aarhus C,  Denmark 
Phone, work:  +45 8942 6090 
Phone, home:  +45 8693 7796 
Fax:          +45 8613 1580 
E-mail:       [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/

-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney-client or other legal privileges, and/or
proprietary non-public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution,
or reproduction of this message and/or any of its attachments (if
any) by unintended recipients is not authorized and may be
unlawful.


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