powered by
Visualize the alpha, beta errors and the power of the test
spotPlotErrors( alternative = "greater", lower = -3, upper = 3, mu0 = 0, mu1 = 1, sigma = 1, n = NULL, xbar = 0, alpha = 0.05, beta = NULL )
One of greater, less, or two.sided. The greater is the default.
lower limit of the plot
upper limit of the plot
mean of the null
mean of the alternative. See also parameter beta.
beta
standard deviation
sample size
observed mean
error of the first kind
error 2nd kind. Default NULL. If specified, then parameter mu1 will be ignored and mu1 will be calculated based on beta.
NULL
mu1
description of return value
# NOT RUN { 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") # }
Run the code above in your browser using DataLab