Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Transforming Unique IDs
From
Dennis Kramer <[email protected]>
To
[email protected]
Subject
st: Transforming Unique IDs
Date
Mon, 23 May 2011 06:17:46 -0400
Greetings,
I am working with a large panel data set and I need to transform the
current unique IDs into a new set of unique IDs while maintaining the
panel nature of the data. For example,
Year 1 ID1 Var 1 Var2 Var3 NewID1
Year 2 ID1 Var 1 Var2 Var3 NewID1
Year 3 ID1 Var 1 Var2 Var3 NewID1
Year 1 ID2 Var 1 Var2 Var3 NewID2
Year 2 ID2 Var 1 Var2 Var3 NewID2
Year 3 ID2 Var 1 Var2 Var3 NewID2
Year 1 ID3 Var 1 Var2 Var3 NewID3
Year 2 ID3 Var 1 Var2 Var3 NewID3
Year 3 ID3 Var 1 Var2 Var3 NewID3
does anyone have a algorithm to produce a new set of unique IDs while
maintaining the panel function? I have looked through the current FAQs
and past listserv discussions and have not found any suggestions that
would create a new ID while maintaining the panel groupings.
Thank you,
*
* 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/