I am using Robert Picard's excellent project package. I would like to keep track of the number of observations dropped while cleaning and merging my data, along with the reasons.
I know how to do the counts, but my question is how to keep track and generate a final tally.
It can be written to the logs, but then I have to manually go and extract them from the logs.
If I append them to a separate file (e.g. a text file), I will have an issue when one file that drops observations is edited and another file is not, since the non-edited file may not be re-run (if nothing it depends on is changed, which is managed by project), and the counts will get lost.
I was thinking along the line of a .dta file with a variable for each of the different drop reasons, so that the counts can each be changed individually, but this seems like a very "hacky" solution. Also, the project package doesn't seem to have a way to handle a file that will be changed by more than one do-file.
I would love to hear any suggestions.
Thank you!
Related Posts with Tracking dropped observation counts
barcolor()Hi, I'm now trying to make a bar graph using betterbar command. In the option for barcolor , barcol…
estate binary indicatorsHello, I am exporting results with a binary variable as the main IV, and the output shows "var=1" a…
how to merge the spatial data when there is no common variables in two dataset?Hi all, My data contains households’ GPS info (latitude, longitude, and altitude) and don’t have da…
Spell duration panelI have spell data of the type Person Month Employed Other variables 1 Jan 2012 0 1 Feb 2012 …
Creating dummy variable equal to one if current mean is one standard deviation above/below the historical meanHello everybody, I am trying to create a dummy variable that is equal to one of current rainfall in…
Subscribe to:
Post Comments (Atom)
0 Response to Tracking dropped observation counts
Post a Comment