Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Making changes to Two Stata files at once

From   "Jia Xiangping" <[email protected]>
To   [email protected]
Subject   Re: st: Making changes to Two Stata files at once
Date   Tue, 19 Sep 2006 03:15:56 +0800

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,
*   For searches and help try:

Xiangping JIA
*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index