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?
Creating categorical variables with multiple different conditions from continuous variablesHi, I am trying to create a categorical variable of "activity". I want 0=<150 mins of activity. …
How to calculate time varying exponentially weighted moving correlation whose mean is not zero?How can we calculate the time-varying EWMA correlation matrix in Stata when mean is not zero?? …
Using and interpreting multi level mixed effects logictic regression with nested clusteringI have a dataset with around 30,000 participants, clustered into 20,000 families which are further c…
Marginal effects of binary explanatory variable after craggitDear Statalist, Greetings! I was trying to estimate the drivers of farmers adoption decions. My dep…
predicted probability issueDear community! I am struggling with a choice of command to calculate predicted probabilities of eac…
Subscribe to:
Post Comments (Atom)
0 Response to Way to identify first successful loop iteration?
Post a Comment