FAQ/zequiv - CBU statistics Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Type the odd letters out: ONlY twO thinGs aRE infiNite

location: FAQ / zequiv

Equivalence test formulation of one sample z-test

For a population mean, $$\theta$$ estimated by a sample mean:

H0: $$\theta \leq $$-d or $$\theta \geq$$ d and HA : -d $$ \leq \theta \leq$$ d

If ind equals 1 then we reject nonequivalence so -d $$\leq$$ $$\theta$$ $$\leq$$ d otherwise we accept the null hypothesis of equivalence for the given type II error, beta.

[TYPE INTO R THE DESIRED INPUTS D, N, MEAN AND BETA USING VALUES IN FORM BELOW].

beta <- 0.05
d <- 0.2
n <- 10
mean <- 0

[THEN COPY AND PASTE THE BELOW INTO R]

cv <- sqrt(qchisq(p=beta, df=1, ncp=n*d^2))
cv2 <- sqrt(n)*cv
ind <- 0
if (mean < cv2) ind = 1
print(ind)