Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Merging observations based on plus-minus quantity
From 
 
Eduardo Nunez <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: Merging observations based on plus-minus quantity 
Date 
 
Thu, 17 Mar 2011 16:37:12 -0400 
It looks the right tool.
Thank you so much!
Eduardo
<>
Try using -nearmrg- (from SSC).
See this example:  http://www.stata.com/statalist/archive/2010-01/msg00007.html
- Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
[email protected]
On Thu, Mar 17, 2011 at 3:14 PM, Dimitriy V. Masterov
<[email protected]> wrote:
> I believe this can be accomplished with nearmrg, which you can install from ssc.
>
> DVM
>
> On Thu, Mar 17, 2011 at 2:22 PM, Eduardo Nunez <[email protected]> wrote:
>> Dear Statalisters:
>>
>> I have a panel data (panel_1) with information on patients
>> corresponding to medical visits (physician-patient encounter).
>> I also have data (panel_2) with information on lab and procedures from
>> these patients, but with dates that do not match with medical visit
>> dates.
>> I would like to merge observaciones from panel_2 into panel_1 only if
>> the dates are within (± 30 days) of the  medical visit dates.
>>
>> I would appreciate any help on this issue,
>>
>> Eduardo
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/