Plot power for each prior distribution according to selected simulation parameters
plot_power(dt, HR = 0.67, driftHR = 1, pred = "none")a bar plot of class ggplot containing the power for each prior distribution.
a data.frame containing summary statistics for the posterior samples from each simulation generated with get_summary.
pre-specified HR between treatment and control arm in the internal trial for which the power should be plotted. Must be within unique(dt$HR).
pre-specified HR between external control arm and internal control arm for which the power should be plotted. Must be within unique(dt$driftHR).
predictors to use when fitting exponential distribution in MCMC for which the power should be plotted. Must be within unique(dt$pred).