View source: R/reportSeverity.R
spotPlotTest | R Documentation |
Visualize test result, errors, and severity
spotPlotTest( alternative = "greater", lower = -3, upper = 3, mu0 = 0, mu1 = 1, sigma = 1, n = NULL, xbar = 0, alpha = 0.05, beta = NULL )
alternative |
One of greater, less, or two.sided. Full plots are currently implemented for less, which is the default. |
lower |
lower limit of the plot |
upper |
upper limit of the plot |
mu0 |
mean of the null |
mu1 |
mean of the alternative. See also parameter |
sigma |
standard deviation |
n |
sample size |
xbar |
observed mean |
alpha |
error of the first kind |
beta |
error 2nd kind. Default |
description of return value
spotPlotTest(lower=490, upper=510, mu0=500, mu1=504, sigma=2.7, n=9, xbar=502.22, alpha=0.025) ## The following two plots should be nearly identical: spotPlotTest(lower=490, upper=510, mu0=500, sigma=2.7, n=9, xbar=502.22, alpha=0.025, beta=0.2) spotPlotTest(lower=490, upper=510, mu0=500, mu1=502.5215, sigma=2.7, n=9, xbar=502.22, alpha=0.025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.