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

Re: st: Re: RE: matching in Stata


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: Re: RE: matching in Stata
Date   Mon, 22 Sep 2003 18:17:23 -0400

At 12:21 PM 9/17/2003 -0400, Oleksandr. wrote:
Dear Chih-Mao,

-merge is not good because even though two samples are form the same
population they have different observations and can not be matched
perfectly.

My problem can be demostrated with the following example:

Dataset1:
person   age  gender  region income
1             20    M        MD     10,000
2             45     F         CA     100,000

Dataset 2:

person     age  gender  region   income
1              23    F         DC            ?
2              35    M        TX            ?

I need program that will match people based on age gender region
and will set income in dataset2 based on closest match from 1.

Oleksandr.
This may be a bit late, but here's another angle on this problem.

You might want to append the two datasets, generating a discriminating variable to distinguish the dataset2 from dataset1. Then do a Mahalanobis matching. Finally, copy the incomes based on the matching.

Write to me privately if you want some programs that do this.
-- David


David Kantor
Institute for Policy Studies
Johns Hopkins University
[email protected]
410-516-5404

*
* 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