Dear Stata team,
I am trying to compare the time to culture conversion (TCC) of a bacterial detection test where the variable "result" is as the following
. The TCC is defined as time needed to observe 2 (or more) consecutive negative results, so that if I manage to detect the 2 consecutive negative results, then I will consider this time onward to be converted to negative.
the data set looks like the following. I am struggling to find a way to apply this definition of TCC in codes , and would highly appreciate your help.
thank you very much for your time
Umama
I am trying to compare the time to culture conversion (TCC) of a bacterial detection test where the variable "result" is as the following
Code:
result=1 if positive and 0 if negative
the data set looks like the following. I am struggling to find a way to apply this definition of TCC in codes , and would highly appreciate your help.
Code:
id date of collecting sample date of result result visit week 1 20oct2016 29oct2016 1 2 1 04nov2016 11Nov2016 0 4 1 17nov2016 25Nov2016 1 6 1 30nov2016 7Dec2016 0 8 1 17dec2016 23Dec2016 0 10 1 31 Jan2017 05Feb2017 1 12 2 2 2
Umama
Comment