Plot the power curve of the planned futility analysis as a function of the effect size (in units of the hypothesized effect size).
powerplot(
x,
ref = FALSE,
add = FALSE,
lty = 1,
ref.lty = 2,
lwd = 1,
xlab = expression(delta),
ylab = "Power",
main = "Power curve of the planned futility analysis",
xlim = c(0, 1.5),
ylim = c(0, 1),
...
)
An object returned by fut
.
If TRUE, power curve of the reference test (one that ignores the futility boundaries) will be overlaid.
If TRUE, the curve will be overlaid on an existing plot; otherwise, a separate plot will be constructed.
Line type for the power curve of the futility analysis.
Line type for the power curve of the reference if ref=TRUE
.
Line width.
A label for the x axis, defaults to a description of x.
A label for the y axis, defaults to a description of y.
A main title for the plot.
The x limits of the plot.
The y limits of the plot.
Other arguments that can be passed to the underlying plot
method.
No return value, called for side effects.
# NOT RUN {
# see example for fut
# }
Run the code above in your browser using DataLab