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
xtdpdgmm postestimation: store AR2 results and Hansen JHello, I am running a Iterated GMM model like this: Code: webuse abdata xtdpdgmm L(0/1).n l.w l.k,…
Combining observationsHi statalist, I have a dataset with approx 1.000.000 observations. In my dataset I have a lot of du…
Plotting percentiles with stack barsHi, I have a dataset containing prices of hostels rooms by country. I divided those prices in quanti…
Passing a local macro to a nested do-file?Dear all, I'm quite new to stata, and I was wondering whether I'd better use a global macro in the f…
How to interpret tvc after stcox?Hello everyone, I have a peace agreement dataset and I am looking at peace duration afterwards. I h…
Subscribe to:
Post Comments (Atom)
0 Response to A loop problem
Post a Comment