Plot power
plot_power.RdPlot power for each prior distribution according to selected simulation parameters
Arguments
- dt
a
data.framecontaining summary statistics for the posterior samples from each simulation generated withget_summary.- HR
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).- driftHR
pre-specified HR between external control arm and internal control arm for which the power should be plotted. Must be within
unique(dt$driftHR).- pred
predictors to use when fitting exponential distribution in MCMC for which the power should be plotted. Must be within
unique(dt$pred).