Learn R Programming

safestats (version 0.8.7)

plot.safeTSim: Plots a 'safeTSim' Object

Description

Plots a 'safeTSim' Object

Usage

# S3 method for safeTSim
plot(x, y = NULL, showOnlyNRejected = FALSE, nBin = 25, ...)

Value

a histogram object, and called for its side-effect to plot the histogram.

Arguments

x

a 'safeDesign' object acquired from designSafeT().

y

NULL.

showOnlyNRejected

logical, when TRUE discards the cases that did not reject.

nBin

numeric > 0, the minimum number of bins in the histogram.

...

further arguments to be passed to or from methods.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab