plot-TwoStageDesign-method: Plot 'TwoStageDesign' with optional set of conditional scores

plot,TwoStageDesign-methodR Documentation

Plot TwoStageDesign with optional set of conditional scores

Description

This method allows to plot the stage-two sample size and decision boundary functions of a chosen design.

Usage

## S4 method for signature 'TwoStageDesign'
plot(x, y = NULL, ..., rounded = TRUE, k = 100)

Arguments

x

design to plot

y

not used

...

further named ConditinonalScores to plot for the design and/or further graphic parameters

rounded

should n-values be rounded?

k

number of points to use for plotting

Details

TwoStageDesign and user-defined elements of the class ConditionalScore.

See Also

TwoStageDesign

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)


kkmann/otsd documentation built on Feb. 3, 2024, 4:50 p.m.