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

st: RE: matching in Stata

From   "Chih-Mao Hsieh" <>
To   <>
Subject   st: RE: matching in Stata
Date   Wed, 17 Sep 2003 10:56:02 -0500

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).

	-----Original Message----- 
	From: on behalf of Oleksandr Shepotylo 
	Sent: Wed 9/17/2003 10:01 AM 
	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.
	*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2023 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index