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
Help with truncationDear Stata Members I need a help with respect to truncation and how operationally it is different fr…
Mean exposure throughout pregnancyHello, i would like to calculate a mean of the variable exposure for each woman during a whole pregn…
Best way to mark a sample containing the balanced panel of observations with nonmissing data.I'm trying to mark a sample for a user program such that the sample is a balanced panel given certai…
Questions about recoding in panel dataHi there! I have a problem in recoding the panel data. As you can see below, this panel data describ…
Plotting GraphHi all, I have data from a survey on prices individuals are willing to pay for a product. In partic…
Subscribe to:
Post Comments (Atom)
0 Response to Conditional execution of a code line on if clause
Post a Comment