Hi Stata,
I have a loop:
forv x = 1/100{
cap{
[stata_commands]
[if first successful iteration, execute command x]
}
}
How can I run a command only during the first successful iteration of the loop? Any ideas?
Thanks in advance.
-Reese
p.s. I'm using v 14.2
Related Posts with Way to identify first successful loop iteration?
Inequality IndicatorsHello I have the cost of every household and the per capita cost of every household What codes shoul…
Manipulating datatimeHi all, my dataset is like that: id data time 1 01jan2018 1 01jan2018 1 03jan2018 1 03jan2018 1 03j…
How to use Stata commands to calculate the total score of Likert Scale questions?In order to assess the attitude about antibiotic use, there are 6 questions with 5 levels of respons…
Drop if - variable not foundHi all, Just a very simple question and command yet I can't figure out why it is not working. I ju…
Problem with capture confirm and graph combine Hello. I have problems combining two graphs in a loop . I do not have all of the combination …
Subscribe to:
Post Comments (Atom)
0 Response to Way to identify first successful loop iteration?
Post a Comment