Skip to contents

Visualize the MCMC samples of DLT probability

Usage

Hist_And_Density(post_sample, dose_pick, post_res, prob_target_cut)

Arguments

post_sample

MCMC samples of DLT probability for various doses. This is probably computed based on getProbSamples().

dose_pick

A scalar, picking the dose that one wants to visualize.

post_res

Summary of DLT estimation for these doses. Can be results from Summary_crmPack_Samples().

prob_target_cut

probability cut of DLT rate. This cut divides the DLT rate into three categories:

  • [0, prob_cut[1]) is underdose interval;

  • [prob_cut[1], prob_cut[2]) is target dose interval;

  • [prob_cut[2], 1] is overdose interval.

Value

A ggplot object showing the density estimation of DLT rate of the chosen dose. The density estimation is based on both geom_density() and geom_histogram(). Also the probability of the DLT rate falls in under/target/over dose intervals are also shown in the figure.