Open graceannobrien opened 2 months ago
@kylebaron Following up on this - it appears to be an issue, but we wanted to see what you thought.
Hey @andersone1 - sorry I didn't see this before. I need to check the code, but guessing that rows 23 and 24 are getting tagged as pre dose (they happen at the same time a the EVID 1 record, but they are getting sorted to happen before record 21 in sort order, so subject to the previous dose). When you sort on DATETIME
, the actual order (record order) is random among records with the same value of DATETIME
, so that's how it could happen. I thought I had some logic in the code to make sure to put all observations either before or after the dose at the same time to head this off, but will have to take a look. Thanks for reporting. Will look into this.
lastdose
outputs differentTAD
for records with sameDATETIME
(rows 22, 23, 24). I would expect all to haveTAD ==0
since they occur at same time as dose (row 21), but only one record hasTAD == 0
.Example data: temp_tad.csv