[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: help merge
thanks for your response.
i attempted the method you suggested (i am using stata version 7.0) and got
the following error message:
i don't think --merge-- allows a 'keep' option, unless something screwy is
happening with my machine.
----- Original Message -----
From: "David Kantor" <firstname.lastname@example.org>
Sent: Monday, September 08, 2003 2:51 PM
Subject: Re: st: help merge
> At 02:23 PM 9/8/2003 -0700, Ritesh Mistry wrote:
> >i have a simple problem about merging datasets.
> >i would like to add variables to analytic.dta from master.dta.
> >analytic.dta contains a subset of variables from master.dta. both
> >have the same observations. how do i add a specific set of variables
> >master.dta to analytic.dta? i don't want to merge all the data, only
> >i'd appreciate any help. thanks!
> 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 hope this is helps.
> -- David
> David Kantor
> Institute for Policy Studies
> Johns Hopkins University
> * 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: