Dear Rachel,
If I were you, I would do it with two approaches:
1) Write do file. Run it at the first datafile. Then tailor the
situation in terms of the second datafile, and make modification.
This approach is valid if the two datafiles are comparable.
2) Alternatively, you can merge these two files together and run your commands.
On 9/19/06, Rachel S <[email protected]> wrote:
I'd like to drop some observations and make other changes to a file
and see how this impact some of my results. The issue is that, once I
do this, I will probably end up adding variables and making other
changes to this file. If I decide that I'd rather not drop the
variables and then go back to the old orphaned file I will have to go
back and make all these changes again.
Is there any way I can have Stata apply commands to two files at a
time? If not, is there a good way to handle this issue besides logging
all my commands and manually re-entering them? (Sure, I can drop
observations only when I'm finished making all other changes to the
file, but in practice, it's hard to know when I'm truly "finished.")
Thanks very much,
Rachel
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
--
Xiangping JIA
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/