Conversation
Added underdose prob
Added Stooping Rules, Increment Rule
Cohort Probability section is added
Adding cohort_probs slot
Adding cohort_probs slot and checking
|
Added a few changes. Please review. |
|
thanks a lot @souvik2019 ! lots of stuff, cool. |
Adding prior for weights for k comp mixture
Added validity check related to prior of k components
Hi Daniel, Regarding the test, we have tested it and these works. How do you want me to provide the tests? Will it be a pdf or html or any other format? |
|
Dear @souvik2019 , thanks a lot, that is great! Ideally, you could create (sequentially, not all at once) PRs for each topic, with associated unit tests. You can have a look in the tests/testthat folder for the structure within each file, there are always strong patterns within these test files which you can follow. Where it depends on the choice (e.g. whether a bound is inclusive or exclusive for the target toxicity interval, just as an example) it would be best to 1) introduce an argument which allows to make the choice and 2) to keep the default behavior as it currently is for backwards compatibility for the general users. You can still keep the overall PR as a collection of the overall work to be done, but for code review and tests production etc. it would be much better to have individual topic focused PRs. |
Pull Request
All changes are made inside the R folder
Design-methods.R
Changes Summary
simulate()method for CRM designs:cohort_probs_dfto store probabilities (UD, TD, OD) per cohort.cohort_probsin the returnedSimulationsobject.Motivation
This update provides users with detailed per-cohort probability information, improving interpretability of dose escalation decisions and supporting more comprehensive reporting.
Impact
Rules-class.R
TL;DR
NextBestNCRMby adding anunderdoseslot and constructor argument.IncrementsConstantFactor,StoppingDoseStagnation,StoppingMinPatientsMtd,StoppingMinDlts,CohortSizeOrdinal.Changes in Detail
1) Next Best Dose Rules
Changed:
NextBestNCRMtarget,overdose,max_overdose_prob; constructor expects(target, overdose, max_overdose_prob).underdoseslot and argument; defaultunderdose = c(0, 0.2).NextBestNCRM(underdose, target, overdose, max_overdose_prob).underdose.2) Increment Control
New:
IncrementsConstantFactorfactor(esc. multiplier),max_dose(cap).factor = 3.3,max_dose = 75.IncrementsConstantFactor(factor = 3.3, max_dose = 75).3) Stopping Rules
New:
StoppingDoseStagnation: stop when current and recommended doses are the same (check = TRUE).StoppingMinPatientsMtd: stop when ≥nPatientsMtdhave been dosed at MTD (default6L).StoppingMinDlts: stop when ≥nDltsDLTs occur (default1L).4) Cohort Size Rules
New:
CohortSizeOrdinalgrade(integer),rule(CohortSize).grade = 1L,rule = CohortSizeRange(intervals = c(0, 30), cohort_size = c(1L, 3L)).Backward Compatibility & Migration
NextBestNCRMconstructor signature changes.NextBestNCRM(target, overdose, max_overdose_prob)NextBestNCRM(underdose, target, overdose, max_overdose_prob)underdose = c(0, 0.2)(or study-specific interval).Examples (PR):