Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Eduardo Nunez <enunezb@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Merging observations based on plus-minus quantity |
Date | Thu, 17 Mar 2011 14:22:15 -0400 |
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/