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
Falsely identical numerical values in tabulate by groupDear all, I am running Stata15. I have the following simple truncated results: Code: . tab beta au…
Create variable of group frequenciesI have a data set that includes variables on individual's district (where a person lives) and occupa…
Advice regarding panel data and collapseHello Everyone, I have a situation with respect to my data. I have weekly data from the top 200 son…
Keeping variables in panelHi all, I have an unbalanced panel. The complete panel spans 11 periods from 2004 to 2015. I would …
3D graph with spikesDear Statalisters, I have been trying to produce a 3D graph for my data below. Array Code: * Examp…
Subscribe to:
Post Comments (Atom)
0 Response to A loop problem
Post a Comment