Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Merging datasets

From   Oybek Rustamov <>
To   "" <>
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


Sent from my iPhone
*   For searches and help try:

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