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
Improving performance of large excel tables with tabout, append - suggestions?Dear Statalist, I have been an avid reader of the list for years and it has helped me tremendously …
xtdpdsys and xtabond2 GMM resultsDear Stata community, I read a number of posts regarding gmm xtdpdsys and xtabond2 but unfortunatel…
Smith et al (2004) Panel Unit Root TestHello everyone, I would like to compare first and second generation unit root test results by apply…
Tsfill with multiple observations per id & per yearHi dear statalist, I have an unbalanced panel with gaps in years, with worker level information abo…
Need help generating new variable to capture 18th observation onwards for each data groupDear all, I have generated a new variable (Ambtemp2oC_01) to capture temperature readings above two …
Subscribe to:
Post Comments (Atom)
0 Response to Find out what variables in .dta file are used in .do file
Post a Comment