Bookmark and Share

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   Eric Booth <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   Re: st: Merging observations based on plus-minus quantity
Date   Thu, 17 Mar 2011 19:09:45 +0000

<>

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 Mar 17, 2011, at 1:22 PM, Eduardo Nunez 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index