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
Independent t-test for differences other than 0Dear Stata Experts, I would like to run the independent t-test for the following dataset and want t…
Generating Single Change Variable In Panel DataHello Stata Folk! I'm reaching out with what I would guess is a question whose answer is very simpl…
combine columns and rows into one rowHello Users, Please help with data transformation. The current data format: sub-var1 sub-var2 sub-v…
Standard errors for each replication(iteration) in bootstrapHello, I am trying to figure out if there is a way of saving all the individual standard errors one …
Local Projections,Hello Everyone, I need to know, How to normalize a shock to 1%of GDP in local projections Thank Y…
Subscribe to:
Post Comments (Atom)
0 Response to Tracking dropped observation counts
Post a Comment