Hey there,
Iam still newish to Stata and want to code it like other languages. So my todays project:
Is it possible to condition the execution of a codeline on an if clause?
Context: I am working with Data of an research institute which allows to publish Data only if there are more than 20 observations in one object.
What I want to do:
“If Observations > 20
Execute code
Else skip to next line”
What I do otherwise: search for all outputs for all Codelines with less than 20 observations. (not preferred 😊 )
Best regards
Clemens Schiewek
Related Posts with Conditional execution of a code line on if clause
Unable to replicate Stata 16 code local x = r(table)[1,1] in Stata 15Dear all, I have run into a problem trying to replicate some code from Stata 16 in Stata 15. Do you…
ADF, Stationarity at 5 and 10%Hi All If variables after first difference are stationary only at the 5% and 10% critical values, a…
Can Positive IV Probit Coefficients imply Negative Marginal Effects?Dear list members, I am sorry to ask about this again, as my other post was presumably phrased to t…
First Difference RegressionHi, I'm looking for the right command to run first difference regression and have found it. I found …
Store the outcome from xttest0Hi Guys I meet the problem when I am trying to store the result from xttest0. I learned how to stor…
Subscribe to:
Post Comments (Atom)
0 Response to Conditional execution of a code line on if clause
Post a Comment