-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stopTrial-StoppingOrdinal
fails when StoppingOrdinal
rules are nested
#859
Comments
stopTrial-StoppingOrdinal
fails when Stoppingordinal
rules are nestedstopTrial-StoppingOrdinal
fails when StoppingOrdinal
rules are nested
Possible solution:
|
Thanks @Puzzled-Face , I think a principled solution could maybe be to add corresponding |
Yes. That works in the case above. I believe we will have the same issue with the other In a number of cases, the
I think I prefer the final option. Note that these three options apply only when the corresponding object is not required to evaluate the rule. In other cases, a new method, whose signature uses ordinal classes, will be required. The general form of these new methods will be:
|
Yeah I guess that sounds right. But before changing everything at once, probably safer to first start with one set of rules and confirm this in practice.
Yes
We should avoid copy-and-paste when possible, so this is not preferred
I think that makes sense.
The method dispatch is not just for checking, but also for choosing the right method - so if we were to do this, then internally we need some kind of if/else conditions etc. and this would be unfortunate since we are already in the S4 framework.
Exactly, and for me that is another argument why I would go with option 2 above - for consistency. The general form of these new methods will be:
Yes, and this can either work with conversions and then method calls, or calling helper functions similarly to above. |
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).The text was updated successfully, but these errors were encountered: