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
Displaying contents of a constraint: negative values shows up as "0-,12345" etc.Dear all, I have been a long-time reader of Statalist and usually find what I need in the excellent…
nscale: new package for rescaling variables to run from 0 to 1 now available on SSCThanks to Kit Baum, a new package called nscale is now available on SSC archive. Code: . ssc insta…
Use e(sample) on imputed datasetDear Statalist, I'm doing Cox regression with a categorical variable. To obtain the count within e…
Hausman test issues in panel dataHi all, i am sonia kaur. I am using stata 15.1 version at tbe moment. I joined this forum recently a…
How to convert -mixed- to -gsem-Does anyone know how to convert a 3-level model with random-effects and random slopes from by -mixed…
Subscribe to:
Post Comments (Atom)
0 Response to Find out what variables in .dta file are used in .do file
Post a Comment