plot.pvalue {PoweR} | R Documentation |
p
-value plot.
Description
This function produces a p
-value plot.
Usage
## S3 method for class 'pvalue'
plot(x,legend.pos=NULL,...)
Arguments
x |
|
legend.pos |
If |
... |
further arguments passed to the |
Details
See Section 2.3 in Lafaye de Micheaux, P. and Tran, V. A. (2014).
Value
No return value. Displays a graph.
Author(s)
P. Lafaye de Micheaux, V. A. Tran
References
Pierre Lafaye de Micheaux, Viet Anh Tran (2016). PoweR: A Reproducible Research Tool to Ease Monte Carlo Power Simulation Studies for Studies for Goodness-of-fit Tests in R. Journal of Statistical Software, 69(3), 1–42. doi:10.18637/jss.v069.i03
See Also
See plot.discrepancy
, plot.sizepower
, graph
.
Examples
stind <- c(43,44,42) # Indices of test statistics.
alter <-list(stat43=3,stat44=3,stat42=3) # Type for each test.
# Several p-values computed under the null.
pnull <- many.pval(stat.indices=stind,law.index=1,
n=100,N=10,alter=alter,null.dist=1,
method="direct")$pvals
xnull <- calcFx(pnull)
plot(xnull)