if A is the master file and B is the using file,
use the "nokeep" option of -merge-
Rich
Lok Wong wrote:
>
> Hi,there,
>
> I have one question about merging data..I am wondering if someone out there
> could help me with it.
>
> Let's say data sets, A and B.. A includes {X1,X2,X3,X4} and B
> includes{X1,X2,X5}..Using X1 and X2, we could uniquely identify the
> individuals in the data...Moreover,the sample size of B is bigger that of
> A..I only want X5 of individuals in B who are also in A...How could I do
> this?
>
> Thanks a lot..
>
> Lok
*
* 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/