When optimizing posterior prediction with bestdose it does duplicate the firt dose (the observed one).
See below.
Of Note nothing has changed in BDcore and all test are still passing, and this behavior was not here before, which means the bug probably lives in BDmichael branch
id, evid, time , dur, dose, addl, ii, input, out , outeq, c0, c1 , c2, c3
1, 1, 0 , 0 , 150 , 0 , 0 , 1 , . , . , 0, 0.2, 0, 0
1, 0, 2 , . , . , . , . , . , 0.759, 1 , 0, 0.2, 0, 0
1, 0, 4 , . , . , . , . , . , 0.384, 1 , 0, 0.2, 0, 0
1, 0, 6 , . , . , . , . , . , 0.194, 1 , 0, 0.2, 0, 0
1, 1, 12 , 0 , 75 , 0 , 0 , 1 , . , . , 0, 0.2, 0, 0
1, 0, 14 , . , . , . , . , . , 0.392, 1 , 0, 0.2, 0, 0
1, 0, 16 , . , . , . , . , . , 0.198, 1 , 0, 0.2, 0, 0
1, 0, 18 , . , . , . , . , . , 0.1 , 1 , 0, 0.2, 0, 0
1, 1, 24 , 0 , 0 , . , . , 1 , . , . , 0, 0.2, 0, 0
1, 0, 36 , . , . , . , . , . , 0.25 , 1 , 0, 0.2, 0, 0
1, 1, 36.0166666666667, 0 , 0 , . , . , 1 , . , . , 0, 0.2, 0, 0
1, 0, 48 , . , . , . , . , . , 0.25 , 1 , 0, 0.2, 0, 0
1, 1, 48.0166666666667, 0 , 0 , . , . , 1 , . , . , 0, 0.2, 0, 0
1, 0, 60 , . , . , . , . , . , 0.25 , 1 , 0, 0.2, 0, 0
1, 1, 60.0166666666667, 0 , 0 , . , . , 1 , . , . , 0, 0.2, 0, 0
1, 0, 72 , . , . , . , . , . , 0.25 , 1 , 0, 0.2, 0, 0
Describe the bug
When optimizing posterior prediction with bestdose it does duplicate the firt dose (the observed one).
See below.
Of Note nothing has changed in BDcore and all test are still passing, and this behavior was not here before, which means the bug probably lives in BDmichael branch
Input for prediction
csv file generated
output
Expected behavior
It should return the following value :
Optimal doses: [150.00, 75.00, 1487.78, 1455.69, 1455.68, 1455.74]