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
Date formattingHello Statalist, I am working with dates and I am encountering a problem I have not encountered bef…
2SLS in non-linear models with count endogenous explanatory variableGreetings everyone, I specify two models in my study with two different dependent variables; one of…
How to select a specific part in a string variable?Greetings, I am cleaning data in a very large dataset, and would want to drop all records in a speci…
PANEL DATA and UNIT ROOT TESTDear Stata users, I am conducting my research about CHINESE FDI IN AFRICA, my main purpose of the s…
mismatch r(109) : finding average variablegood evening I hope that you are all in good health. The dataset comprises of a balanced panel of …
Subscribe to:
Post Comments (Atom)
0 Response to Conditional execution of a code line on if clause
Post a Comment