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
Wilcoxon matched-pair sign-rank test -signrank- with a grouping variable ( by(groupvar) )Hi! I'm conducting a study in which I have 3 controls per case, matched on age, cancer stage and ca…
Probit with Panel DataHi Everyone, I am using two waves of panel data to assess the impact of socio-demographic character…
Marginsplot for selected categoriessolved …
Cluster multiple dummy variablesHi everyone, In my dataset there is a categorical variable "nationality" that takes on 36 values, d…
Show SD-within statistics from panel data via outreg2 descriptive tableDear Statalist, For my Masters I need to replicate a paper using Stata. I have managed to successfu…
Subscribe to:
Post Comments (Atom)
0 Response to Conditional execution of a code line on if clause
Post a Comment