Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: How to count switches ?

From   Ignacio Martinez <>
Subject   st: How to count switches ?
Date   Sat, 26 Jun 2010 15:20:50 -0400

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.


Attachment: signature.asc
Description: This is a digitally signed message part

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index