Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Dmitriy Krichevskiy <krichevskyd@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: How to count switches ? |
Date | Sat, 26 Jun 2010 15:25:21 -0400 |
There is -tsspell- that does this. (-findit tsspell-). On 6/26/10, Ignacio Martinez <ignacio@virginia.edu> wrote: > Hi I'm new in the list and I hope someone can help me. > > I would like to know how can I count switches in stata. I have the > following variables: Year, ID, Employment status > I want to generate a variable that ==1 if employment status in year t != > to employment status in year t-1 for each individual. > > Thanks a lot for the help. > > -Ignacio > -- Dmitriy Krichevskiy Ph.D. Candidate Economics Department Florida International University www.fiu.edu/~dkrichev Research Associate, College of Education Lumina Foundation Project * * 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/