View source: R/calc_new_skeleton.R
calc_new_skeleton | R Documentation |
This function updates an initial CRM skeleton when using the empiric (power) model, after some data have been gathered on the dose-toxicity curve. This code is currently not used, but is included for posterity.
calc_new_skeleton(old_skeleton, tox, level, offset_seq = NULL)
old_skeleton |
A numeric vector with entries between 0 and 1; the initial skeleton. |
tox |
A vector with binary entries 0,1 representing the outcomes of the patients; should be the same length as the number of observations collected. |
level |
A positive integer vector of labels with length equal to that of tox indicating the dose level that each observation was assigned to. Every element of this vector should, in addition to being positive, be no larger than the length of skeleton, i.e. the number of dose levels. |
offset_seq |
A positive numeric vector of arbitrary length that should probably have some values above and below 1. The old_skeleton corresponds to a value of 1, and including offset_seq helps to see if a better fit is obtained by scaling old_skeleton up or down. |
A named list containing elements new_skeleton (the updated skeleton) and new_scale (the suggested revised prior scale to put on the single parameter beta in the power model).
boonstra2020seamlesssim
\insertRefdfcrm2019seamlesssim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.