Dear Stata-Users,
my goal is to set up a command to automatically track the number of observations that have been dropped during a cleaning process.
My idea is the following: instead of executing, say for example
I would want to execute
My own command, lets call it tackobs, would execute the drop-command and on top create a local with the number of observations that have been dropped or the number of remaining observations. I can collect those locals at the end of my dofile, organize that information in a table and export it.
The reason for doing that is that I want to "hide" the creation of locals inside another ado-file in order not to clutter my dofile and make it unreadable.
Is that a possible?
Thank you!
my goal is to set up a command to automatically track the number of observations that have been dropped during a cleaning process.
My idea is the following: instead of executing, say for example
Code:
drop if case==1
Code:
trackobs drop if case==1
The reason for doing that is that I want to "hide" the creation of locals inside another ado-file in order not to clutter my dofile and make it unreadable.
Is that a possible?
Thank you!
Comment