Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: in search of merge modification

From   "Scott Merryman" <>
To   <>
Subject   st: RE: in search of merge modification
Date   Fri, 15 Sep 2006 15:04:34 -0500

Possibly Michael Blasnik's -nearmrg- can be used or adapted to your needs.
-findit nearmrg- to locate and download.


> -----Original Message-----
> From: Beaulieu, Emily A []
> Sent: Friday, September 15, 2006 12:30 PM
> To:
> Subject: st: in search of merge modification
> I am hoping to be able to perform a match-merge of 2 data sets where both
> s=
> ets have unique (country, date) observations [where the date variable is a
> =
> STATA numeric date], but the dates in the 2 data sets, are not a direct
> mat=
> ch.=A0 The countries will match, and what I would like STATA to do is
> match=
>   the dates in memory to the closest preceding dates in the "using" data
> set=
> , for any given country.=A0 I would also like to perform a separate merge,
> =
> having STATA choose the closest following date in the data set.=A0 

*   For searches and help try:

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