nextBest-NextBestNCRMLoss Method.Helper function which creates the plot for nextBest-NextBestNCRMLoss()
method.
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
)(numeric)
matrix with probabilities of a grid doses
to be in a given interval. If is_unacceptable_specified is TRUE, there
must be 4 intervals (columns) in prob_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.
(numeric)
posterior losses.
(number)
maximum overdose posterior
probability that is allowed.
(numeric)
dose grid.
(number)
maximum eligible dose level in
the dose_grid.
(number)
the maximum allowed next dose.
(number)
next best dose.
(flag)
is unacceptable interval specified?