plot.safeTSim | R Documentation |
Plots a 'safeTSim' Object
## S3 method for class 'safeTSim' plot(x, y = NULL, showOnlyNRejected = FALSE, nBin = 25, ...)
x |
a 'safeDesign' object acquired from |
y |
|
showOnlyNRejected |
logical, when |
nBin |
numeric > 0, the minimum number of bins in the histogram. |
... |
further arguments to be passed to or from methods. |
a histogram object, and called for its side-effect to plot the histogram.
# Design safe test alpha <- 0.05 beta <- 0.20 designObj <- designSafeT(1, alpha=alpha, beta=beta) # Design frequentist test freqObj <- designFreqT(1, alpha=alpha, beta=beta) # Simulate under the alternative with deltaTrue=deltaMin simResults <- simulate(designObj, nSim=100) plot(simResults) plot(simResults, showOnlyNRejected=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.