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?
Multilevel/Hierarchical models and clustered-robust standard errorsMultilevel/hierarchical model with clustered-robust standard errors. I have reviewed various posts o…
Observations in new variable that shouldn't be includedHello, I am trying to make a new variable with the following command Code: gen gift_group_test = …
graph add vertical line using value in macro variableI am using Stata 13 I want to develop code to add a single vertical line on a graph using a value ob…
interaction effects LPM vs logisticHi! I am trying to understand why my interaction effects get different signs when using an logistic…
graph add vertical line using value in macro variableI am using Stata 13 I want to develop code to add a single vertical line on a graph using a value ob…
Subscribe to:
Post Comments (Atom)
0 Response to Way to identify first successful loop iteration?
Post a Comment