View source: R/reportSeverity.R
spotPlotErrors | R Documentation |
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 )
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 |
sigma |
standard deviation |
n |
sample size |
xbar |
observed mean |
alpha |
error of the first kind |
beta |
error 2nd kind. Default |
description of return value
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.