Dear Oleksandr
I would imagine that -merge- is what you're looking for, maybe with a couple -gen- commands along the way. What is ultimately done will depend on what you intend to do with all the "extra" observations in X2 (whether you still want to match those, or you have a rule to leave some unmatched).
Chihmao.
-----Original Message-----
From: [email protected] on behalf of Oleksandr Shepotylo
Sent: Wed 9/17/2003 10:01 AM
To: [email protected]
Cc:
Subject: st: matching in Stata
Dear Statalist,
Is there any Stata procedure that will match observations from 2 different
datasets drawn from the same population.
Let's say, I have datasets X1=(x,y) and X2=(x). I want to construct
X2*=(x*,y) based on mathching observations with closest x's. Also, since X2
has more observations correspondence
should not be 1 to 1.
Thanks,
Oleksandr.
*
* 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/