Plot TwoStageDesign
with optional set of conditional scores
Source: R/TwoStageDesign.R
plot-TwoStageDesign-method.Rd
This method allows to plot the stage-two sample size and decision boundary functions of a chosen design.
Usage
# S4 method for class 'TwoStageDesign'
plot(x, y = NULL, ..., rounded = TRUE, k = 100)
Details
TwoStageDesign
and
user-defined elements of the class ConditionalScore
.
Examples
design <- TwoStageDesign(50, 0, 2, 50, 2, 5)
cp <- ConditionalPower(dist = Normal(), prior = PointMassPrior(.4, 1))
plot(design, "Conditional Power" = cp, cex.axis = 2)