Dear all:
I have a problem when dealing with my data, for one variable. There is only "1","2", and "0", I want to find the first "1", and then find the next "2", then find the next "1",and so on like the following example:
from the right to the left
0 0
0 0
1 1
1 0
1 0
1 0
0 0
1 0
2 2
2 0
1 1
1 0
Thank you!
Best wishes
Related Posts with A loop problem
Error 703Dear All, as per errors list shown here, error 703 corresponds to the situation "703. op. sys. refu…
Is there a better way to calculate firm age?Dear Statalisters, I'd like to calculate a firm's age based on number of years the firm has been on…
panel data - time dummies problemHello everyone! I will try to be as precise and concise as possible. ***** SET UP****** I'm study…
Help on coding Panel Data RegressionHello, first time user in this forum, As this model relies in integrating the 'turning point' of a …
Tagging different values of encrypted variableI am dealing with a dataset with monthly information on the different hospitals each health professi…
Subscribe to:
Post Comments (Atom)
0 Response to A loop problem
Post a Comment