anova formula???

G

Guest

Does anyone know if there is a formula for calculating
ANOVA (analysis of variance) bewteen multiple arrays??
thanks
sto
 
J

Jerry W. Lewis

The following will work for completely balanced designs, and is better
numerically than what is in the Analysis ToolPak. For unbalanced
designs, you could form and solve the Normal Equations ... but it would
be a lot of work and not very numerically accurate (the Normal Equations
are a great theory/teaching tool, but a lousy numerical method). If you
want to do unbalanced designs, you would be better served to switch to a
dedicated statistics program. R is reasonable and free
www.r-project.org

If y_data is the cell range containing the observed values (no empty
cells), and id_data is a cell range of the same shape that indicates the
appropriate classification for a particular factor, then the following
array formula (Ctrl-Shift-Enter)

=DEVSQ(SUMIF(id_data,id_data,y_data)/COUNTIF(id_data,id_data))

gives the corrected sum of squares for this factor before all other
factors. In a balanced design, this can be used for each main effect.
You would need similar id_data ranges for each interaction term, but
would then have to subtract off SS for corresponding main effects and
lower order interactions. Similarly the array formula

=SUM(1/COUNTIF(id_data,id_data))

would give the number of levels for this factor. Subtract 1 to get
degrees of freedom for a main effect. Also subtract df for each
corresponding main effect and lower order interaction to get df for an
interaction.

The corrected total sum of squares is
=DEVSQ(y_data)
with degrees of freedom
=COUNT(y_data)-1
so the residual line can be obtained by subtraction.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ANOVA with 3 factors 1
ANOVA with two factors 2
ANOVA 2
two-way ANOVA 2
Fisher statistical law 4
ANOVA Results Interpretation 1
ANOVA using Analysis ToolPak 1
ANOVA procedures and t-test equal variance 1

Top