spotPlotErrors: spotPlotErrors

View source: R/reportSeverity.R

spotPlotErrorsR Documentation

spotPlotErrors

Description

Visualize the alpha, beta errors and the power of the test

Usage

spotPlotErrors(
  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. The greater 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

spotPlotErrors(lower=490,upper=510,mu0=500,mu1=504,sigma=2.7,n=9,xbar=502.22)
spotPlotErrors(lower=140,upper=155,mu0=150,mu1=148,sigma=10,n=100,xbar=149,alternative="less")

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