Dear All, Please, I would like to randomly assign the dates of a treatment from individuals who had this treatment to those who didn't, in order to analyse treatment occurrences within similar timeframes for both groups. That's, create a pool of treatment dates from the treat group and then randomly assign these dates to the control group. Thank you.
The data looks like this:
The data looks like this:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id yearexam yearill monthill dayill score illdate ill) 1 2000 2000 11 3 100 14917 1 1 2001 . . . 150 . 0 1 2002 . . . 111 . 0 2 2000 . . . 123 . 0 2 2001 2001 5 2 200 15097 1 2 2002 . . . 214 . 0 2 2003 . . . 203 . 0 2 2004 . . . 302 . 0 2 2005 . . . 136 . 0 3 2001 2001 7 6 222 15162 1 4 2001 . . . 158 . 0 4 2002 . . . 178 . 0 4 2003 . . . 228 . 0 4 2004 . . . 311 . 0 5 2000 . . . 197 . 0 5 2001 2001 2 17 106 15023 1 5 2002 . . . 147 . 0 5 2003 . . . 241 . 0 5 2004 . . . 299 . 0 6 2002 2002 3 3 321 15402 1 6 2003 . . . 139 . 0 6 2004 . . . 284 . 0 13 2002 2002 5 23 123 15483 1 13 2005 . . . 214 . 0 end format %td illdate
Comment