workshop 7 6a factorial anova
play

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)


  1. Workshop 7.6a: Factorial ANOVA Murray Logan 19 Jul 2017

  2. Section 1 Background

  3. Factorial ANOVA

  4. Factorial ANOVA Response (mean growth rate of seedlings) Response (mean growth rate of seedlings) a) b) ● ● ● ● ● ● ● ● High Low High Low Factor A (temperature) Factor A (temperature) Response (mean growth rate of seedlings) Response (mean growth rate of seedlings) c) d) ● ● ● ● ● ● ● ● High Low High Low Factor A (temperature) Factor A (temperature)

  5. The linear model Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX y ijk = µ + α i + β j + α i β j + ε ijk • α i is the effect of the i th temperature • β j is the effect of the j th nitrogen level • α i β j is the effect of the ij th interaction.

  6. Low High Low Medium Low Medium Low Medium Low High Low High Low High High Low High Low Low Low Low High High High High High High High Medium Medium Low High Medium Temp Nitrogen ------ ---------- Low Low High The linear model Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX y i i i i i i i i i

  7. 1 0 0 High Low NA 1 1 0 0 0 0 High Medium NA 1 1 1 0 1 0 0 High Medium 1 0 0 1 0 0 High Low NA 1 1 0 0 0 0 High Low NA 1 0 NA NA 0 High High NA 1 1 0 1 1 0 High High NA 1 1 0 1 0 1 1 1 1 1 1 0 1 0 High Medium NA 1 1 0 0 1 0 High High NA 1 1 1 High 0 NA 0 0 0 0 0 Low Low 1 NA 0 0 0 0 0 Low Medium NA 1 Low Low ---- ------ ---- ------------- ------- --------- ------- --------------- ------------- NA (Intercept) THigh NMedium NHigh THigh:NMedium THigh:NHigh Low Low Low NA 1 0 0 0 0 0 1 1 T 0 High NA 1 0 0 1 0 Low 0 High NA 1 0 0 1 0 0 Low 0 0 1 0 0 Low Medium NA 1 0 0 0 0 0 Low Medium NA 1 0 1 N The linear model Two-factor

  8. The linear model Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX y i = β 0 i + β 1 i + β 2 i + β 3 i + β 4 i + β 5 i + β 6 i + ε i • β 0 is the mean of the T L : N L group • β 1 is the difference between T H : N L and T L : N L • β 2 is the difference between T L : N M and T L : N L

  9. The linear model Two-factor Low N Medium N High N Low temp. XXX XXX XXX High temp XXX XXX XXX y ijk = µ + α i + β j + α i β j + ε ijk • α i is the effect of the i th temperature at the base level of β ฀

  10. Factorial ANOVA Factor MS F-ratio (both F-ratio (A F-ratio (both fixed) fixed, B ran- random) dom) MS A / MS Resid MS A / MS A : B MS A / MS A : B A MS A MS B / MS Resid MS B / MS Resid MS B / MS A : B B MS B A:B MS A : B MS A : B / MS Resid MS A : B / MS Resid MS A : B / MS Resid

  11. Section 2 Design Balance

  12. Balance When balanced SS TOTAL = SS A + SS B + SS A : B + SS Resid

  13. Factoral ANOVA n c e l a b a i g n D e s • When balanced SS TOTAL = SS A + SS B + SS A : B + SS Resid • When not balanced SS TOTAL ̸ = SS A + SS B + SS A : B + SS Resid

  14. Factorial ANOVA

  15. Factoral ANOVA e a n c b a l g n e s i D • When balanced SS TOTAL = SS A + SS B + SS A : B + SS Resid • When not balanced SS TOTAL ̸ = SS A + SS B + SS A : B + SS Resid • can฀t use sequential SS (Type I SS) should use either hierarchical (Type II SS) marginal (Type III SS)

  16. Factorial ANOVA

  17. Factorial ANOVA n s t i o u m p A s s • Normality • Homogeneity of variance • Independence • Considerations for Balance

  18. Section 3 Worked examples

  19. > #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 Worked examples

  20. Worked Examples Question: what effects do pH and health have on the bud emergence rating of spruce seedlings Linear model: ε ∼ N (0 , σ 2 ) Buds ijk = µ + α i + β j + α i β j + ε ijk

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

  22. Worked Examples Question: what effects do season and density have on barnacle recruitment Linear model: ε ∼ N (0 , σ 2 ) Recruits ijk = µ + α i + β j + α i β j + ε ijk

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend