
Plot a single-arm two-stage ROPE design
Source:R/s3-singlearm_rope_twostage.R
plot.singlearm_rope_twostage_design.RdProduces a six-panel figure in a 2-row by 3-column layout:
- Top-left
Predictive type-I error and power as functions of the stage-1 sample size \(n_1\) for the fixed maximum \(n^*\), with the optimal \(n_1\) marked. Optional dashed frequentist curves are added when corresponding calibration targets are present.
- Top-centre
Predictive PCE under \(H_0\) as a function of \(n_1\) for the fixed maximum \(n^*\), with the optimal \(n_1\) marked.
- Top-right
Compact textual summary of the optimal design and its operating characteristics.
- Bottom-left
Null design prior density with the direction-appropriate ROPE region shaded.
- Bottom-centre
Alternative design prior density with the direction-appropriate ROPE region shaded.
- Bottom-right
Analysis prior density with the direction-appropriate ROPE region shaded.
Arguments
- x
An object of class
"singlearm_rope_twostage_design".- type
Character string selecting the plot type. One of
"default"(default),"interim", or"final".- ...
Further graphical parameters passed to
par()for the"interim"and"final"types.
Details
Additional plot types are available via the type argument:
"default"The 2x3 summary layout described above (default).
"interim"Interim posterior probability vs. stage-1 responses, showing the continuation region \(C_1\).
"final"Final posterior probability vs. total responses, showing the acceptance region.