plot {cosa} | R Documentation |
Power and MDES Curves
Description
Plots statistical power or minimum detectable effect size curves with (1-\alpha
)x100 % confidence interval for the design of interest.
Usage
## S3 method for class 'power'
plot(x, score = NULL, ypar = "mdes", xpar = NULL,
xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL,
main = NULL, sub = NULL,
locate = FALSE, benchmark = NULL, ...)
## S3 method for class 'mdes'
plot(x, score = NULL, ypar = "mdes", xpar = NULL,
xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL,
main = NULL, sub = NULL,
locate = FALSE, benchmark = NULL, ...)
## S3 method for class 'cosa'
plot(x, score = NULL, ypar = "mdes", xpar = NULL,
xlim = NULL, ylim = NULL,
xlab = NULL, ylab = NULL,
main = NULL, sub = NULL,
locate = FALSE, benchmark = NULL, ...)
Arguments
x |
an object returned from functions in cosa package. |
score |
vector or list; an empirical score variable or an object with class 'score' returned from the |
ypar |
character; |
xpar |
character; one of the sample sizes on |
xlim |
limits for |
ylim |
limits for |
xlab |
|
ylab |
|
main |
title for the plot. |
sub |
subtitle for the plot. |
locate |
logical; |
benchmark |
benchmark line. |
... |
other graphical parameters to pass to |
Examples
d1 <- mdes.bcrd3r2(rho2 = .10, rho3 = .20, omega3 = .30,
n1 = 20, n2 = 44, n3 = 50)
plot(d1, xpar = "n3", xlim = c(30, 100))
[Package cosa version 2.1.0 Index]