Workshop 7.6a: Factorial ANOVA Murray Logan 19 Jul 2017 Section 1 - - PowerPoint PPT Presentation

workshop 7 6a factorial anova
SMART_READER_LITE
LIVE PREVIEW

Workshop 7.6a: Factorial ANOVA Murray Logan 19 Jul 2017 Section 1 - - PowerPoint PPT Presentation

Workshop 7.6a: Factorial ANOVA Murray Logan 19 Jul 2017 Section 1 Background Factorial ANOVA Factorial ANOVA Response (mean growth rate of seedlings) Response (mean growth rate of seedlings) a) b)


slide-1
SLIDE 1

Workshop 7.6a: Factorial ANOVA

Murray Logan 19 Jul 2017

slide-2
SLIDE 2

Section 1 Background

slide-3
SLIDE 3

Factorial ANOVA

slide-4
SLIDE 4

Factorial ANOVA

High Low

Response (mean growth rate of seedlings) Factor A (temperature)

  • a)

High Low

Response (mean growth rate of seedlings) Factor A (temperature)

  • b)

High Low

Response (mean growth rate of seedlings) Factor A (temperature)

  • c)

High Low

Response (mean growth rate of seedlings) Factor A (temperature)

  • d)
slide-5
SLIDE 5

The linear model

Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX yijk = µ + αi + βj + αiβj + εijk

  • αi is the effect of the ith temperature
  • βj is the effect of the jth nitrogen level
  • αiβj is the effect of the ijth interaction.
slide-6
SLIDE 6

The linear model

Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX

Temp Nitrogen

  • ----- ----------

Low Low Low Low Low Low Low Medium Low Medium Low Medium Low High Low High Low High High Low High Low High Low High Medium High Medium High Medium High High High High High High

yi

i i i i i i i

i

slide-7
SLIDE 7

The linear model

Two-factor

T N NA (Intercept) THigh NMedium NHigh THigh:NMedium THigh:NHigh

  • --- ------ ---- ------------- ------- --------- ------- --------------- -------------

Low Low NA 1 Low Low NA 1 Low Low NA 1 Low Medium NA 1 1 Low Medium NA 1 1 Low Medium NA 1 1 Low High NA 1 1 Low High NA 1 1 Low High NA 1 1 High Low NA 1 1 High Low NA 1 1 High Low NA 1 1 High Medium NA 1 1 1 1 High Medium NA 1 1 1 1 High Medium NA 1 1 1 1 High High NA 1 1 1 1 High High NA 1 1 1 1 High High NA 1 1 1 1

slide-8
SLIDE 8

The linear model

Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX yi = β0i + β1i + β2i + β3i + β4i + β5i + β6i + εi

  • β0 is the mean of the TL : NL group
  • β1 is the difference between TH : NL and

TL : NL

  • β2 is the difference between TL : NM and

TL : NL

slide-9
SLIDE 9

The linear model

Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX yijk = µ + αi + βj + αiβj + εijk

  • αi is the effect of the ith temperature at

the base level of β

slide-10
SLIDE 10

Factorial ANOVA

Factor MS F-ratio (both fixed) F-ratio (A fixed, B ran- dom) F-ratio (both random) A MSA MSA/MSResid MSA/MSA:B MSA/MSA:B B MSB MSB/MSResid MSB/MSResid MSB/MSA:B A:B MSA:B MSA:B/MSResid MSA:B/MSResid MSA:B/MSResid

slide-11
SLIDE 11

Section 2 Design Balance

slide-12
SLIDE 12

Balance

When balanced SSTOTAL = SSA + SSB + SSA:B + SSResid

slide-13
SLIDE 13

Factoral ANOVA

D e s i g n b a l a n c e

  • When balanced

SSTOTAL = SSA + SSB + SSA:B + SSResid

  • When not balanced

SSTOTAL ̸= SSA + SSB + SSA:B + SSResid

slide-14
SLIDE 14

Factorial ANOVA

slide-15
SLIDE 15

Factoral ANOVA

D e s i g n b a l a n c e

  • When balanced

SSTOTAL = SSA + SSB + SSA:B + SSResid

  • When not balanced

SSTOTAL ̸= SSA + SSB + SSA:B + SSResid

  • can฀t use sequential SS (Type I SS)

should use either hierarchical (Type II SS) marginal (Type III SS)

slide-16
SLIDE 16

Factorial ANOVA

slide-17
SLIDE 17

Factorial ANOVA

A s s u m p t i

  • n

s

  • Normality
  • Homogeneity of variance
  • Independence
  • Considerations for Balance
slide-18
SLIDE 18

Section 3 Worked examples

slide-19
SLIDE 19

Worked examples

> #Worked examples > stehman <- read.csv('../data/stehman.csv', strip.white=T) Error in file(file, "rt"): cannot open the connection > head(stehman) Error in head(stehman): object 'stehman' not found

slide-20
SLIDE 20

Worked Examples

Question: what effects do pH and health have on the bud emergence rating of spruce seedlings Linear model: Budsijk = µ + αi + βj + αiβj + εijk

ε ∼ N(0, σ2)

slide-21
SLIDE 21

Worked Examples

Error in file(file, "rt"): cannot open the connection Error in head(quinn): object 'quinn' not found

slide-22
SLIDE 22

Worked Examples

Question: what effects do season and density have on barnacle recruitment Linear model: Recruitsijk = µ + αi + βj + αiβj + εijk

ε ∼ N(0, σ2)