gngplot: Plot the decision matrix

View source: R/bayes-pp-fun.R

gngplotR Documentation

Plot the decision matrix

Description

Plot the decision matrix

Usage

gngplot(pptabx, groupsize)

Arguments

pptabx

the result returned by bayes_pred_go_nogo

groupsize

additional number of subjects needed for each interim after the first interim

Value

a plot of decision matrix (ggplot object)

Examples

go_nogo <- bayes_pred_go_nogo(nmax = 40, nmin = 1, p0 = 0.3, p1 = 0.5,
thetats = 0.8, thetatf = 0.1, thetau = 0.95, thetal1 = 0.95, a = 1, b = 1)
gngplot(go_nogo, groupsize = 5)

zhuob/R4ClinicalTrial documentation built on Feb. 4, 2025, 1:15 a.m.