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

RE: st: help merge


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: help merge
Date   Tue, 9 Sep 2003 10:23:04 +0100

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/



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