Diff for "FAQ/zequiv" - CBU statistics Wiki
location: Diff for "FAQ/zequiv"
Differences between revisions 3 and 4
Revision 3 as of 2007-10-19 09:39:48
Size: 694
Editor: PeterWatson
Comment:
Revision 4 as of 2013-03-08 10:17:39
Size: 694
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

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)

None: FAQ/zequiv (last edited 2013-03-08 10:17:39 by localhost)