plots {PowerUpR} | R Documentation |
Plots
Description
Plots statistical power, minimum detectable effect size (MDES), or MDES difference (MDESD) curves with (1-\alpha
)x100 % confidence interval.
Usage
## S3 method for class 'power'
plot(x, ypar = "power", xpar = NULL,
xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL,
main = NULL, sub = NULL,
locate = FALSE, ...)
## S3 method for class 'mdes'
plot(x, ypar = "power", xpar = NULL,
xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL,
main = NULL, sub = NULL,
locate = FALSE, ...)
## S3 method for class 'mrss'
plot(x, ypar = "power", xpar = NULL,
xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL,
main = NULL, sub = NULL,
locate = FALSE, ...)
Arguments
x |
an object returned from one of the |
ypar |
character; |
xpar |
character; one of the sample sizes on |
xlim |
limits for |
ylim |
limits for |
xlab |
|
ylab |
|
main |
title for the plot (ignored for objects returned from |
sub |
subtitle for the plot (ignored for objects returned from |
locate |
logical; |
... |
other graphical parameters to pass to |
Examples
design1 <- mdes.cra3(rho3=.06, rho2=.17, n=15, J=3, K=60)
plot(design1, ypar = "mdes", xpar = "K", xlim = c(30, 100))
plot(design1, ypar = "power", xpar = "K", xlim = c(30, 100))
design2 <- power.cra3(es=.269, rho3=.06, rho2=.17, n=15, J=3, K=60)
plot(design2, ypar = "mdes", xpar = "K", xlim = c(30, 100))
plot(design2, ypar = "power", xpar = "K", xlim = c(30, 100))