Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Create common ID # from several changing ID #s

From   Andrea Drechsler <>
To   <>
Subject   st: Create common ID # from several changing ID #s
Date   Fri, 3 Dec 2010 13:24:46 -0500


I have a dataset of medical providers at the provider-year level.
Each provider has an ID #.  If the provider moves to a new location,
they are assigned a new ID #.  I have two other variables that
sometimes contain providers' previous or future ID #s.  I'm trying to
create a common ID # for each provider so I can track them over time.

For example, I'd like to assign all of the following observations a common ID #:

current_id		other_id1		other_id2
406434166		406434127
406434127		406434166		406414087
406414087		406384157

Thanks very much in advance!

~ Andrea Drechsler
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index