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]
----- Original Message -----
From: "Nick Cox" <[email protected]>
To: <[email protected]>
Sent: Tuesday, September 09, 2003 5:23 AM
Subject: RE: st: help merge
> Ritesh Mistry replied to David Kantor:
>
> > > What you want is...
> > > merge varlist1 using master, keep( varlist2 )
> > >
> > > where varlist2 is the set of variables that you want to
> > take from master.
> > > varlist 1 is the set of key variables.
> >
> > i attempted the method you suggested (i am using stata
> > version 7.0) and got
> > the following error message:
> >
> > keep() invalid
> > r(198);
> >
> > i don't think --merge-- allows a 'keep' option, unless
> > something screwy is
> > happening with my machine.
>
> No need for surmise here. -merge- has a -keep()- option
> and it is clearly documented. I think you need to
> show us exactly what you typed.
>
> Nick
> [email protected]
>
> *
> * 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/