Draws the type I error rate of a matched-pairs design with blinded sample size re-estimation and of the fixed design against the probability of a discordant pair on the boundary of the null hypothesis, with a reference line at the nominal level. For a test of equivalence the two boundaries are drawn in separate panels.
Usage
# S3 method for class 'bbssr_ptie'
plot(
x,
main = NULL,
sub = NULL,
xlab = NULL,
ylab = NULL,
ylim = NULL,
ref.line = NULL,
legend.title = NULL,
legend.labels = NULL,
colours = NULL,
base_size = 11,
...
)Arguments
- x
An object of class
bbssr_ptie- main
Title.
NULLkeeps the default andNAremoves it- sub
Subtitle.
NULLkeeps the default andNAremoves it- xlab
Label of the horizontal axis.
NULLkeeps the default- ylab
Label of the vertical axis.
NULLkeeps the default- ylim
Range of the vertical axis, applied through
coord_cartesian()- ref.line
Height of the dashed reference line.
NULLdraws it at the nominal level andNAremoves it- legend.title
Title of the legend.
NULLkeeps the default- legend.labels
Labels of the two designs.
NULLkeeps the defaults- colours
Two colours for the BSSR and the fixed design
- base_size
Base font size passed to
theme_bw()- ...
Further arguments, ignored
Examples
tie <- PairedTypeIErrorBSSR(Delta.A = 0.2, N = 40, n.interim = 20, alpha = 0.05,
tar.power = 0.8, Test = 'McNemar',
alternative = 'two.sided', ss.method = 'standard',
psi = seq(0.1, 0.9, by = 0.05))
plot(tie)
