Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Pavlos C. Symeou" <p.symeou@lmu.de> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Spotting changes in identifier |
Date | Wed, 07 Jul 2010 13:04:17 +0200 |
year name ticker 1999 stata ss 2000 strata ssb) the Ticker may have changed over the years whilst Name may have remained the same;
year name ticker 1999 stata ss 2000 stata sss c) both may have changed year name ticker 1999 stata ss 2000 strata sssI am interested in identifying cases a) and b) above (considering that case c might require visual observation rather than an automated process)
Do you have any suggestions? I have tried bysort name: l name ticker year if ticker[_n]!="ticker[_n+1]" but it doesn't seem to work. Both Name and Ticker are string variables. Best, Pavlos * * 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/