plot_type1error: Plot type 1 error

View source: R/get_summary.R

plot_type1errorR 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.


psborrow documentation built on March 7, 2023, 8:32 p.m.