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
Store estimates of a loop using a reghdfe regressionHello everyone, I am trying to store estimates of a (reghdfe) regression in a loop. The regressions…
STATA does NOT allow me to stratify for a variable in a frailty model. How to fix?Dear all, I have a question regarding a survival analysis. I thank you all in advance. I have to co…
recovering latitude and longitude of the observations having distances to a specific pointsHello, I am dealing with a problem and I hope you can help me. I have 8000 observations from Germany…
Problem with Mundlak approachDear all, I am pretty new to Stata and just beginning my research journey. I am trying to estimate…
Appending tables using collectI'm reasonably sure I'm missing something very simple with this question. Basically, I have two tabl…
Subscribe to:
Post Comments (Atom)
0 Response to Find out what variables in .dta file are used in .do file
Post a Comment