I am trying to create a new variable that takes the next value in a group. In particular, I have:
User Quarter
A 2012Q1
A 2012Q2
A 2012Q3
My desired output would be:
User Quarter Next_Quarter
A 2012Q1 2012Q2
A 2012Q2 2012Q3
A 2012Q3 n/a
I have tried to have a counter for each customer, but I am not sure where I should go from there...