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]

st: Merging datasets


From   Oybek Rustamov <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Merging datasets
Date   Sun, 9 Oct 2011 21:30:14 +0100

Dear All

Could you help me with merging my two datasets. In my datasets some patients had more than two treatment cycles and number of blood tests. I  need to merge blood results that is closest to treatment date and before the treatment date. 

This is example of my datasets.

1) Treatment dataset

Patient ID    Treatment date

A.                 01/01/09
A.                 05/07/10
       
B.                  10/10/10
B.                  12/10/11


2) Blood results dataset

Patient ID       Test date

A.                  12/12/2008
A.                  10/09/2008
A.                   01/01/2011


B.               10/09/2009
B.                03/09/2010
B.                04/05/2011

Many thanks

Oybek



Sent from my iPhone
*
*   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