Plot type 1 error
plot_type1error.RdPlot type 1 error 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(). Must contain simulations for HR = 1.0.- driftHR
the driftHR between the external and internal control arms for which the type 1 error should be plotted. Must be within
unique(dt$driftHR).- pred
the predictors used when fitting the exponential distribution in MCMC for which the type 1 error should be plotted. Must be within
unique(dt$pred).