Building the Plot for nextBest-NextBestNCRMLoss
Method.
Source: R/helpers_rules.R
h_next_best_ncrm_loss_plot.Rd
Helper function which creates the plot for nextBest-NextBestNCRMLoss()
method.
Usage
h_next_best_ncrm_loss_plot(
prob_mat,
posterior_loss,
max_overdose_prob,
dose_grid,
max_eligible_dose_level,
doselimit,
next_dose,
is_unacceptable_specified
)
Arguments
- prob_mat
(
numeric
)
matrix with probabilities of a grid doses to be in a given interval. Ifis_unacceptable_specified
isTRUE
, there must be 4 intervals (columns) inprob_mat
:underdosing
,target
,excessive
,unacceptable
. Otherwise, there must be 3 intervals (columns):underdosing
,target
,overdose
. Number of rows must be equal to number of doses in a grid.- posterior_loss
(
numeric
)
posterior losses.- max_overdose_prob
(
number
)
maximum overdose posterior probability that is allowed.- dose_grid
(
numeric
)
dose grid.- max_eligible_dose_level
(
number
)
maximum eligible dose level in thedose_grid
.- doselimit
(
number
)
the maximum allowed next dose.- next_dose
(
number
)
next best dose.- is_unacceptable_specified
(
flag
)
is unacceptable interval specified?