I'm working with the ACS PUMS for a project. I'm recoding and relabeling a few variables which I want to look at over time. To keep the file size manageable I'm planning on dropping the variables I'm not working with.
I think this is a long shot but figure it doesn't hurt to ask: is there any way to tell Stata to keep only variables that have been modified? It'd be really convenient to add a line in my .do file that says "If a variable has been mentioned in a command or generated keep it, otherwise drop it."
It's not a big deal to just list the variables, but I think it'd be a cool feature.
I think this is a long shot but figure it doesn't hurt to ask: is there any way to tell Stata to keep only variables that have been modified? It'd be really convenient to add a line in my .do file that says "If a variable has been mentioned in a command or generated keep it, otherwise drop it."
It's not a big deal to just list the variables, but I think it'd be a cool feature.

Comment