I am reviewing an old project by someone who is no longer reachable.
I have her .dta file with input data and the .do file with her analysis. However, the .dta file contains a large number of variables/columns and is simply a mess overall. Many of these variables were poorly named so that it's hard to distinguish what variables are used in the .do file and what variables are never used. For instance, there are several variations of variables containing GDP data (e.g. GDP_11, GDP_12, GDP_101, etc.) when in the end only one of these variations is used in the analysis contained in the .do file. This takes place with other variables as well.
Is there a way for me to find out what variables in the .dta are actually used in the .do file? I would like to remove all variables from that .dta file that are not used the code contained in the .do file.
Thank you in advance.
Related Posts with Find out what variables in .dta file are used in .do file
Exporting instrument test results from ivreg2Following is my ivreg2 code Code: asdoc ivreg2 pro l.le l.a (rec interaction= pay ca bor),nest re…
Days overlap in two date rangesThis may be a basic question, but is there a straightforward way to calculate the number of days tha…
Using coefplot to plot the effect of categorical variable with interactionDear Statalist users, I wondered if you could help me with this issue in particular. I am running …
How to calculate ICC1 and ICC2 with unbalanced data?Hi all, I have a problem with the -icc- command. It omits a large number of observations with unbala…
Not getting a collinearity errorI apologize if this is a simple question. I have created dummy variables for highest degree earned. …
Subscribe to:
Post Comments (Atom)
0 Response to Find out what variables in .dta file are used in .do file
Post a Comment