Diff for "FAQ/oneweq" - CBU statistics Wiki
location: Diff for "FAQ/oneweq"
Differences between revisions 5 and 6
Revision 5 as of 2007-10-25 14:43:21
Size: 656
Editor: PeterWatson
Comment:
Revision 6 as of 2007-10-25 14:50:32
Size: 903
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
For an effect size $$\theta^text{2}$$:

 

H0: $$\theta^text{2}$$ ≥ d and HA : $$\theta^text{2}$$ < d

If ind equals 1 then we reject nonequivalence so $$\theta^text{2} \geq$$ d otherwise we accept the null hypothesis of equivalence.
Line 7: Line 14:
RSQ represents partial $$eta^text{2}$$ using one of Cohen's [:FAQ/effectSize:rules of thumb], n is a vector of group sizes, tdel represents the [:FAQ/mageq:criterion for t] and beta is the type II error. RSQ represents partial $$eta^text{2}$$ using one of Cohen's [:FAQ/effectSize:rules of thumb], n is a vector of group sizes, tdel represents the [:FAQ/mageq:criterion for d] and beta is the type II error.
Line 12: Line 19:
tdel <- 0.5 dcrit <- 0.5
Line 22: Line 29:
cstats <- (k*(k-1)/ns)*qf(beta,k-1,ns-k,(ns/k)*tdel*tdel) cstats <- (k*(k-1)/ns)*qf(beta,k-1,ns-k,(ns/k)*dcrit*dcrit)

R code for equivalence test in one-way ANOVA

For an effect size $$\theta^text{2}$$:

H0: $$\thetatext{2}$$ ≥ d and HA : $$\thetatext{2}$$ < d

If ind equals 1 then we reject nonequivalence so $$\theta^text{2} \geq$$ d otherwise we accept the null hypothesis of equivalence.

[TYPE INTO R THE DESIRED INPUTS RSQ, N, K, TDEL AND BETA USING VALUES IN FORM BELOW].

RSQ represents partial $$eta^text{2}$$ using one of Cohen's [:FAQ/effectSize:rules of thumb], n is a vector of group sizes, tdel represents the [:FAQ/mageq:criterion for d] and beta is the type II error.

rsq <- 0.006
n <- c(10,12,13,15)
dcrit <- 0.5
beta <- 0.05

[THEN COPY AND PASTE THE BELOW INTO R]

k <- length(n)
ns <- sum(n)
psi2 <- (rsq/(1-rsq))*k*((ns-k)/ns)
cstats <- (k*(k-1)/ns)*qf(beta,k-1,ns-k,(ns/k)*dcrit*dcrit)
ind <- 0 
if (psi2 < cstats) ind = 1
print(ind)

None: FAQ/oneweq (last edited 2014-11-18 15:23:25 by PeterWatson)