Allow tidy-Samples
to return fitted probabilities of toxicity
#749
Labels
tidy-Samples
to return fitted probabilities of toxicity
#749
The
tidy
method converts an object created bycrmPack
methods to a (list
of)tibble
(s). In the case of aSamples
object, the list consists of two elements,data
andoptions
. Thedata
element looks like this:It would be convenient if the returned
tibble
contained the estimated probability of toxicity for each dose as well as the sampled model parameters.This could be easily achieved by adding
model
anddoseGrid
(ordata
) parameters totidy
methods forModelTox
objects. Thetidy
method would thenexpand
the basic tidiedtibble
for theSamples
object with the requested doses and then apply theModel
'sprobFunction
to obtain the requested probabilities of toxicity.Additionally, a
probs
option could be added to thetidy
method to obtain the posterior distribution of the dose with a given probability of toxicity using similar methodology.Use of both
probs
anddoseGrid
(ormodel
) in the same call would not be permitted.Options for dual endpoint models need further consideration.
The text was updated successfully, but these errors were encountered: