plot,TwoStageDesign-method | R Documentation |
TwoStageDesign
with optional set of conditional scoresThis method allows to plot the stage-two sample size and decision boundary functions of a chosen design.
## S4 method for signature 'TwoStageDesign'
plot(x, y = NULL, ..., rounded = TRUE, k = 100)
x |
design to plot |
y |
not used |
... |
further named |
rounded |
should n-values be rounded? |
k |
number of points to use for plotting |
TwoStageDesign
and
user-defined elements of the class ConditionalScore
.
TwoStageDesign
design <- TwoStageDesign(50, 0, 2, 50, 2, 5)
cp <- ConditionalPower(dist = Normal(), prior = PointMassPrior(.4, 1))
plot(design, "Conditional Power" = cp, cex.axis = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.