powerplot {grpseq} | R Documentation |
Plot the power function of the planned analysis
Description
Plot the power curve of the planned futility analysis as a function of the effect size (in units of the hypothesized effect size).
Usage
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),
...
)
Arguments
x |
An object returned by |
ref |
If TRUE, power curve of the reference test (one that ignores the futility boundaries) will be overlaid. |
add |
If TRUE, the curve will be overlaid on an existing plot; otherwise, a separate plot will be constructed. |
lty |
Line type for the power curve of the futility analysis. |
ref.lty |
Line type for the power curve of the reference if |
lwd |
Line width. |
xlab |
A label for the x axis, defaults to a description of x. |
ylab |
A label for the y axis, defaults to a description of y. |
main |
A main title for the plot. |
xlim |
The x limits of the plot. |
ylim |
The y limits of the plot. |
... |
Other arguments that can be passed to the underlying |
Value
No return value, called for side effects.
See Also
Examples
# see example for fut