I know how to write simpel code of a macro to complete one task:
e.g. drop obervations whose var1 value is missing.
global drop_missing "drop if var1 =."
But how can I write simpel code of a macro to complete multiple tasks?
e.g. drop obervations whose var1 value is missing, then drop those whose var2 value is missing, then drop those whose var3 value is missing.
global drop_missing "drop if var1 =. drop if var2 =. drop if var3 =."
The above line of code is definitively wrong. How can I write this code?
I do not know how to properly phrase this question, so I cannot search and find any previous Q&As.
Thank you for any advice/comments!
Related Posts with Multiple Tasks in a Macro
How to dereference macros such as e(depvar), and macros which are already macros themselves, e.g., `macro' ?What are the rules for dereferencing macros such as e(depvar), and macros which are themselves alrea…
ARDL methods and Maxlag commandDear I'm using the ARDL method on my time series data, I found that using the maxlag with ARDL metho…
Cross Sectional Dependence in Panel DataHello everyone. I have a panel data with N=30 and T=20.After testing for cross sectional dependence …
QuaidsDear Statalist, I am trying to estimate a 15 goods QUAIDS model with 5 household demographics chara…
Robust Hausman Test for the Random and Fixed ModelHello everyone, I am aware there is a community-contributed command -rhausman- for the Robust Hausm…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple Tasks in a Macro
Post a Comment