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?
Command for Calculating the Average for 7 days periods in Panel DataDear Stata Specialists, I have a daily panel data from 01/01/2012 to 12/31/2017 with 10 different r…
est the sensitivity - stochastic frontier [COLOR=rgba(0, 0, 0, 0.87)]Good afternoon, I'm running a stochastic frontier model and I need to te…
Generting a variable that counts consecutive observations within personHello, I am trying to identify when an individual has at least15 consecutive months of insurance eli…
Multicollinearity - Lagged Independent VariableI am assessing the impact of economic sanctions on the five major components of GDP (imports, export…
Sudden r(608) error in a loop (file cannot be modified)Hello, I have encountered a strange problem (at least for me). I run a loop of the following form t…
Subscribe to:
Post Comments (Atom)
0 Response to Way to identify first successful loop iteration?
Post a Comment