FAQ/oneweq - 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: scieNce GATHeRS knowledge fAster tHAN SOCIeTY GATHErS wisdom

Revision 3 as of 2007-10-25 14:36:46

location: FAQ / oneweq

R code for Equivalence test in one-way ANOVA

[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 rules of thumb, n is a vector of group sizes, tdel represents the criterion for t and beta is the type II error.

rsq <- 0.006
n <- c(10,12,13,15)
tdel <- 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)*tdel*tdel)
ind <- 0 
if (psi2 < cstats) ind = 1
print(ind)