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
Importing Json-formatted data from a .txt file into stataDear Statausers, I am facing the following: I have received a .txt file containing data in json for…
RegressionHello guys, I wanted know how to at least explain the coefficients. Help! HTML Code: regress log_…
Cd with local and an other do fileHi, I'm trying to use local in my CD but it doesn't work. I can do this : Code: local directory="…
Sorry for the double post, there was a bugSorry for the double post, there was a bug …
grstest output into excelHello everybody, Do you know how I can extract the results from a GRS-test into a table? My curren…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple Tasks in a Macro
Post a Comment