Statalist


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

st: RE: Question erase duplicates values


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Question erase duplicates values
Date   Tue, 12 Aug 2008 18:10:42 +0100

There is no code here and no example data to be clear on what you tried.


So, how can anyone answer this except by guessing? 

The fact that values of an identifier are repeated does not mean that
the dataset should be cleaned up by removing duplicates of the
identifier. That principle would wreak havoc on panel data. Cloning the
identifier makes no difference to that principle. What is true of the
original is true of the clone, necessarily. 

Perhaps you did something like 

. duplicates drop clonedid 

And -duplicates- refused. I am very pleased to hear that. I designed
that behaviour into -duplicates- to protect people from losing
information. 

Perhaps you did something else altogether, in which case please say
precisely what. 

Nick 
[email protected] 

Daniel Sepulveda-Adams

I'm trying to created a unique ID to make a merge between two date set 
But the Unique ID is a variable that have many duplicates values,
therefore
what I did was clone the variables and try to erase the duplicates
values
but just in the NEW variable but I was not able to do that. Anyone has
an
idea how to do that? Thank you for your time.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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