plot_type1error {psborrow}R Documentation

Plot type 1 error

Description

Plot type 1 error for each prior distribution according to selected simulation parameters

Usage

plot_type1error(dt, driftHR = 1, pred = "none")

Arguments

dt

a data.frame containing summary statistics for the posterior samples from each simulation generated with get_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).

Value

a bar plot of class ggplot containing type 1 error proportions for each prior distribution.


[Package psborrow version 0.2.1 Index]