Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: help merge


From   "Ritesh Mistry" <[email protected]>
To   <[email protected]>
Subject   RE: st: help merge
Date   Tue, 9 Sep 2003 10:22:54 -0700

Thanks all for your posts.  I did infact try what Oscar suggested and
that worked fine.

Ritesh

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of David Kantor
Sent: Tuesday, September 09, 2003 10:14 AM
To: [email protected]
Subject: Re: st: help merge

Indeed, -keep()- is a feature that is new in Stata 8.

In an earlier Stata version, you would need to do what Oscar Alberto
Budar 
Mej�a had suggested. Here's a somewhat modified variant on that:

use master;
keep the variables you want to take, plus match-key variables;
sort on the match-key variables;
save as a tempfile;
use analytic;
merge using the tempfile created above;

I used to do this all the time.  Thus I am very please that they added
the 
-keep()- feature.

This also reminds us to state what version of Stata you use (if it is
not 
the latest) when posing a question.

-- David

At 12:36 PM 9/9/2003 -0400, you wrote:
>I think the problem is that the keep option for merge is new in Stata
8, so
>it wouldn't be documented or working for the poster who states they are
>using Stata 7.0.
>
>Michael Blasnik
>[email protected]
>
>[...]

David Kantor
Institute for Policy Studies
Johns Hopkins University
[email protected]
410-516-5404


*
*   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/


*
*   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/



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