Docsity

Factorial ANOVA: Interactions & Effect Coding in Multiple Categorical Variables, Study notes of Design

Partial preview of the text

Download Factorial ANOVA: Interactions & Effect Coding in Multiple Categorical Variables and more Study notes Design in PDF only on Docsity!

Factorial ANOVA

More than one categorical

explanatory variable

Factorial ANOVA

  • Categorical explanatory variables are called factors
  • More than one at a time
  • Originally for true experiments, but also useful with observational data
  • If there are observations at all combinations of explanatory variable values, it’s called a complete factorial design (as opposed to a fractional factorial).

Two-factor design

Bacteria Type Temp 1 2 3 1=Cool 2=Warm

Six treatment conditions

Factorial experiments

  • Allow more than one factor to be

investigated in the same study:

Efficiency!

  • Allow the scientist to see whether the

effect of an explanatory variable

depends on the value of another

explanatory variable: Interactions

  • Thank you again, Mr. Fisher.

Tests

  • Main effects: Differences among

marginal means

  • Interactions: Differences between

differences (What is the effect of Factor

A? It depends on Factor B.)

To understand the interaction,

plot the means

Temperature by Bacteria Interaction 0 5 10 15 20 25 1 2 3 Bacteria Type Rot Cool Warm

Non-parallel profiles = Interaction

It Depends 0 5 10 15 20 25 1 2 3 Bacteria Type Mean Rot Cool Warm

Main effects for both

variables, no interaction

Main Effects Only 0 5 10 15 20 25 1 2 3 Bacteria Type Mean Rot Cool Warm

Main Effect for Temperature

Only

Temperature Only 0 5 10 15 20 25 1 2 3 Bacteria Type Mean Rot Cool Warm

Both Main Effects, and the

Interaction

Mean Rot as a Function of Temperature and Bacteria Type 0 5 10 15 20 25 1 2 3 Bacteria Type Rot Cool Warm

Testing Contrasts

  • Differences between marginal means

are definitely contrasts

  • Interactions are also sets of contrasts

Interactions are sets of Contrasts

Equivalent statements

  • The effect of A depends upon B
  • The effect of B depends on A

Three factors: A, B and C

  • There are three (sets of) main effects: One each for A, B, C
  • There are three two-factor interactions
    • A by B (Averaging over C)
    • A by C (Averaging over B)
    • B by C (Averaging over A)
  • There is one three-factor interaction: AxBxC