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

Re: st: help merge


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: help merge
Date   Tue, 9 Sep 2003 12:36:55 -0400

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
michael.blasnik@verizon.net


----- Original Message ----- 
From: "Nick Cox" <n.j.cox@durham.ac.uk>
To: <statalist@hsphsun2.harvard.edu>
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
> n.j.cox@durham.ac.uk
>
> *
> *   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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index