Open Puzzled-Face opened 6 days ago
Possible solution:
h_needs_ordinal_input
, perhaps) that
TRUE
for StoppingOrdinal
StoppingList
and returns TRUE
iff any sub call returns TRUE
stopTrial
method and convert the input model and data objects if required.Thanks @Puzzled-Face , I think a principled solution could maybe be to add corresponding stopTrial
methods with DataOrdinal
signature parts to all relevant Stopping
classes. Then, the required "conversion" to binary model and data would only happen at the very end when it is needed.
stopTrial-StoppingOrdinal
fails whenStoppingOrdinal
rules are nested within the overall stopping rule.No error occurs with the design returned by
.DefaultDesignOrdinal()
because its stopping rule is given byNote that the overall rule is a
StoppingOrdinal
, but none of its components are. To demonstrate:But an overall stopping rule that is (at least partially) composed of
StoppingOrdinal
s is perfectly possible:After which,
The problem arises because
stopTrial-StoppingOrdinal
simply converts the model and data objects it is passed to their binary equivalents and then delegates to the appropriatestopTrial
method without checking whether any subordinateStopping
rules are themselvesStoppingOrdinal
s. The situation is relatively complicated because the nesting may not be direct. For example:We should also check that we don't have similar issues with other rules (eg
size-CohortSizeMin
andsize-CohortSizeMax
;maxDose-IncrementsMin
etc).