Hello guys!

May I ask your assistance on how can I identify the individuals who have moved in and out of a certain state i.e poverty over waves after calculating the transition Matrix. Basically, I have calculated the transition matrix from my panel data with only two waves ( gap in years) using the xttrans2 command in Stata and I got the transition Matrix. But I want to identify either by using Individuals ID those who moved transited from state one to another and/or those remained in the same state by creating a binary variable with 1 if he/she changed state and zero otherwise.

Can anyone please explain to me how I can do it in Stata.

For example my data set is as is looks below; Now I want see the dynamics of variable Stunt over the two waves 2010&2012 and identify the IDs with different states ( changed states or/ and remained in the same state)
Array