spotPlotTest: spotPlotTest

View source: R/reportSeverity.R

spotPlotTestR Documentation

spotPlotTest

Description

Visualize test result, errors, and severity

Usage

spotPlotTest(
  alternative = "greater",
  lower = -3,
  upper = 3,
  mu0 = 0,
  mu1 = 1,
  sigma = 1,
  n = NULL,
  xbar = 0,
  alpha = 0.05,
  beta = NULL
)

Arguments

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 beta.

sigma

standard deviation

n

sample size

xbar

observed mean

alpha

error of the first kind

beta

error 2nd kind. Default NULL. If specified, then parameter mu1 will be ignored and mu1 will be calculated based on beta.

Value

description of return value

Examples

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)

SPOT documentation built on June 26, 2022, 1:06 a.m.