Lecture 27 Two-Way ANOVA: Interaction

Similar documents
Topic 28: Unequal Replication in Two-Way ANOVA

SAS Commands. General Plan. Output. Construct scatterplot / interaction plot. Run full model

Lecture 2 Simple Linear Regression STAT 512 Spring 2011 Background Reading KNNL: Chapter 1

Topic 29: Three-Way ANOVA

Lecture 18 Miscellaneous Topics in Multiple Regression

Lecture 9: Factorial Design Montgomery: chapter 5

SAS Program Part 1: proc import datafile="y:\iowa_classes\stat_5201_design\examples\2-23_drillspeed_feed\mont_5-7.csv" out=ds dbms=csv replace; run;

Lec 5: Factorial Experiment

Outline. Topic 22 - Interaction in Two Factor ANOVA. Interaction Not Significant. General Plan

Lecture 15 Topic 11: Unbalanced Designs (missing data)

Lecture 3: Inference in SLR

Outline Topic 21 - Two Factor ANOVA

Lecture 13 Extra Sums of Squares

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

STAT 705 Chapter 19: Two-way ANOVA

Topic 20: Single Factor Analysis of Variance

STAT 705 Chapter 19: Two-way ANOVA

Factorial designs. Experiments

1 Tomato yield example.

Topic 32: Two-Way Mixed Effects Model

Lecture 9 SLR in Matrix Form

T-test: means of Spock's judge versus all other judges 1 12:10 Wednesday, January 5, judge1 N Mean Std Dev Std Err Minimum Maximum

2-way analysis of variance

Lecture 10 Multiple Linear Regression

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek

Regression, Part I. - In correlation, it would be irrelevant if we changed the axes on our graph.

Introduction to Crossover Trials

Factorial Treatment Structure: Part I. Lukas Meier, Seminar für Statistik

Multi-Way Analysis of Variance (ANOVA)

Part 5 Introduction to Factorials

STAT 705 Chapter 16: One-way ANOVA

STA441: Spring Multiple Regression. This slide show is a free open source document. See the last slide for copyright information.

Introduction to Factorial ANOVA

Outline. PubH 5450 Biostatistics I Prof. Carlin. Confidence Interval for the Mean. Part I. Reviews

8/04/2011. last lecture: correlation and regression next lecture: standard MR & hierarchical MR (MR = multiple regression)

Review. One-way ANOVA, I. What s coming up. Multiple comparisons

Outline. Topic 19 - Inference. The Cell Means Model. Estimates. Inference for Means Differences in cell means Contrasts. STAT Fall 2013

Lecture 3: Analysis of Variance II

Unbalanced Designs & Quasi F-Ratios

Two-Way Analysis of Variance - no interaction

PLS205!! Lab 9!! March 6, Topic 13: Covariance Analysis

Topic 23: Diagnostics and Remedies

Stat 705: Completely randomized and complete block designs

Stat 6640 Solution to Midterm #2

STAT 705 Chapters 23 and 24: Two factors, unequal sample sizes; multi-factor ANOVA

ANOVA Situation The F Statistic Multiple Comparisons. 1-Way ANOVA MATH 143. Department of Mathematics and Statistics Calvin College

Statistics 512: Applied Linear Models. Topic 9

STAT 8200 Design of Experiments for Research Workers Lab 11 Due: Friday, Nov. 22, 2013

Lecture 11 Multiple Linear Regression

Food consumption of rats. Two-way vs one-way vs nested ANOVA

13: Additional ANOVA Topics

MIXED MODELS FOR REPEATED (LONGITUDINAL) DATA PART 2 DAVID C. HOWELL 4/1/2010

COMPLETELY RANDOM DESIGN (CRD) -Design can be used when experimental units are essentially homogeneous.

Topic 9: Factorial treatment structures. Introduction. Terminology. Example of a 2x2 factorial

Lecture 12 Inference in MLR

Chap The McGraw-Hill Companies, Inc. All rights reserved.

Introduction to Analysis of Variance. Chapter 11

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

3. Factorial Experiments (Ch.5. Factorial Experiments)

What Is ANOVA? Comparing Groups. One-way ANOVA. One way ANOVA (the F ratio test)

Analysis of Variance

Stat 217 Final Exam. Name: May 1, 2002

2 >1. That is, a parallel study design will require

Regression With a Categorical Independent Variable: Mean Comparisons

Lecture #26. Gage R&R Study. Oct. 29, 2003

EC4051 Project and Introductory Econometrics

The One-Way Independent-Samples ANOVA. (For Between-Subjects Designs)

Design & Analysis of Experiments 7E 2009 Montgomery

Regression I - the least squares line

Quick Introduction to Momentum Principle. Momentum. Momentum. Basic principle not at all obvious on Earth 24/02/11

STAT 525 Fall Final exam. Tuesday December 14, 2010

CE3502. Environmental Measurements, Monitoring & Data Analysis. ANOVA: Analysis of. T-tests: Excel options

One-way analysis of variance

Factorial ANOVA. STA305 Spring More than one categorical explanatory variable

Analysis of Covariance

Analysis of variance

One-way ANOVA (Single-Factor CRD)

Econometrics. 4) Statistical inference

STAT22200 Spring 2014 Chapter 8A

STAT 3900/4950 MIDTERM TWO Name: Spring, 2015 (print: first last ) Covered topics: Two-way ANOVA, ANCOVA, SLR, MLR and correlation analysis

ii. Determine all possible (legal) model terms iii. Determine the degrees of freedom for the terms iv. Determine the EMSs (unrestricted model)

One-way Analysis of Variance. Major Points. T-test. Ψ320 Ainsworth

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES

Lecture 6: Single-classification multivariate ANOVA (k-group( MANOVA)

Chapter 20 : Two factor studies one case per treatment Chapter 21: Randomized complete block designs

In a one-way ANOVA, the total sums of squares among observations is partitioned into two components: Sums of squares represent:

STA 303H1F: Two-way Analysis of Variance Practice Problems

22s:152 Applied Linear Regression. Take random samples from each of m populations.

One-way between-subjects ANOVA. Comparing three or more independent means

Your schedule of coming weeks. One-way ANOVA, II. Review from last time. Review from last time /22/2004. Create ANOVA table

Topic 25 - One-Way Random Effects Models. Outline. Random Effects vs Fixed Effects. Data for One-way Random Effects Model. One-way Random effects

Calculus 140, section 4.7 Concavity and Inflection Points notes by Tim Pilachowski

Lecture 4: Testing Stuff

Stat 511 HW#10 Spring 2003 (corrected)

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Intro to Learning Theory Date: 12/8/16

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College

Chapter 1 Review of Equations and Inequalities

Multiple Pairwise Comparison Procedures in One-Way ANOVA with Fixed Effects Model

Lecture 10. Factorial experiments (2-way ANOVA etc)

Transcription:

Lecture 27 Two-Way ANOVA: Interaction STAT 512 Spring 2011 Background Reading KNNL: Chapter 19 27-1

Topic Overview Review: Two-way ANOVA Models Basic Strategy for Analysis Studying Interactions 27-2

Two-way ANOVA Factor Effects Model Y = µ + α+ β + ( αβ) + ε ijk i j ij ijk where ( 2 ε ~ 0, ) ijk N σ are independent and α = β = ( αβ) = 0 i i ij SAS uses different constraints: α a= 0, β = 0, and ( αβ ) = 0 for i = a or j = b. b ij 27-3

Constraints / Comparisons Under the usual constraints everything gets compared to the GRAND MEAN Under SAS constraints everything gets compared to the mean for the last level of each factor. In either case, differences are identified and contrasts can be used with the results being exactly the same. So in the big picture, you should be able to produce the basic estimates, but otherwise do not need to worry too much about the constraints. 27-4

Factor Effects (under the textbook constraints) Grand Mean: Estimate µ by Y iii Main Effects Estimate α i by α ˆi = Y iii Y Estimate β i by β ˆj= Yj Y i i Interaction: Estimate ( αβ ) ij by ( αβ ) = Y ij iji Yiii Yiji+ Yiii iii iii 27-5

General Strategy for Multiple ANOVA Analysis Every thing we are doing can be extended to any number of variables. We will now consider a general strategy for approaching this type of data. 27-6

General Strategy 1. Set up model with main effects and interaction(s), check assumptions, and examine interaction(s). 2. If no significant interaction, examine main effects individually, using appropriate adjustments for multiple comparisons, main effects plots, etc. Note one could also possibly re-run the analysis without the interaction term (see section 19.1 in KNNL about pooling) 27-7

Analysis Strategies (2) 3. If interaction is significant, determine whether interactions are important. If not, can examine main effects as in Step 2. 4. If interaction present & important, determine whether interaction is simple or complex. 5. For simple interactions, can still talk about the main effects of A at each level of B 6. For complex interaction, must simply consider all pairs of levels as separate treatments. 27-8

Unimportant Interactions If interaction effects are very small compared to main effects or only apparent in a small number of treatments, then they are probably unimportant. Lines will be not quite parallel, but close. We can proceed by keeping interaction in the model, but using marginal means for each significant main effect individually Marginal means: Averages over the levels of the other factor. 27-9

Example (Unimportant Interaction) 27-10

Important Interactions The interaction effect is so large and/or pervasive that main effects cannot be interpreted on their own. In interaction plots, the lines will not be parallel. They may or may not criss-cross, but the differences between levels for one factor will depend on the level of the other factor 27-11

Important Interactions Options include the following: Analyze interaction Similar to interpreting as a one-way ANOVA with ab levels; use Tukey to compare means; contrasts and estimate can also be useful. Report that the interaction is significant; plot the means and describe the pattern. Discuss results for the levels of A for each level of B or vice versa 27-12

Simple vs. Complex Interactions An interaction is considered simple if we can discuss trends for the main effect of one factor for each level of the other factor, and if the general trend is the same. An interaction is complex if it is difficult to discuss anything about the main effects. In this situation, one can only look at treatment combinations and cannot separate them into main effects easily. 27-13

Example (Important Interaction) Main effect of A is bigger for B = B2 than for B = B1 27-14

Example (Important Interaction #2) Suppression: Effect of A is suppressed if B = B2 27-15

Example (Important Interaction #3) Complicated Interaction: Cannot separate effects 27-16

Example (Important Interaction #4) In this case, main effects would appear to be zero. But this is misleading and inaccurate. 27-17

Example (Important Interaction #4) If you averaged over either factor, you would find no change when going from one level to the other. In fact there is a change when going from one level to the next, and the type of change depends on the level of the second factor. (This is a good definition for interaction.) 27-18

Example (Important Interaction #4) Conclusions should be... At the low level of factor B, increasing A from low to high decreases the mean response. At the high level of factor B, increasing A from low to high increases the mean response. You cannot make statements here about Factor A alone or Factor B alone. 27-19

Battery Example Study the effects of A = type of material and B = temperature on the lifetime of a battery (in hours). Three material types (experimental) Nickel- Cadmium, Nickel-Metal Hydride, and Lithium-Ion Three temperatures (also experimental) 15, 70, and 125 degrees Fahrenheit 27-20

Battery Example (2) Four observations per cell Goal is to examine the effects and hopefully find a material that will help the battery have a uniformly long life in the field. Steps in analysis: Check interaction plot Review ANOVA results / assumptions Check main effects if appropriate Draw conclusions 27-21

Interaction 27-22

Interaction (2) Interaction here is complicated but quite informative. It appears the Ni-Cd battery is worst we would want to eliminate that from production if the costs were all the same. We ll take a look at the rest in greater detail, but the plot makes us suspect the Lithium ion battery is superior. 27-23

Assumptions No major violations of the assumptions are evident from reviewing the plots 27-24

ANOVA Results Source DF SS MS F Value Pr > F type 2 10684 5342 7.91 0.0020 temp 2 39119 19559 28.97 <.0001 type*temp 4 9614 2403 3.56 0.0186 Error 27 18231 675 Total 35 77648 All effects are significant, can look at multiple comparisons for type*temp. 27-25

LSMeans Output LSMEAN type temp time LSMEAN Number Lith 15 144.000000 1 Lith 70 145.750000 2 Lith 125 85.500000 3 NiCd 15 134.750000 4 NiCd 70 57.250000 5 NiCd 125 57.500000 6 NiMH 15 155.750000 7 NiMH 70 119.750000 8 NiMH 125 49.500000 9 27-26

LSMeans Output (2) i/j 1 2 3 4 5 6 7 8 2 1.0000 3 0.0743 0.0604 4 0.9999 0.9995 0.2017 5 0.0018 0.0014 0.8282 0.0065 6 0.0019 0.0015 0.8347 0.0067 1.0000 7 0.9991 0.9997 0.0172 0.9616 0.0003 0.0004 8 0.9165 0.8823 0.6420 0.9953 0.0460 0.0475 0.5819 9 0.0006 0.0005 0.5819 0.0022 1.0000 1.0000 0.0001 0.0172 Combine the p-values with the previous table to produce groupings. 27-27

Tukey Groupings type temp time LSMEAN # GRP NiMH 15 155.75 7 A Lith 70 145.75 2 A B Lith 15 144.00 1 A B NiCd 15 134.75 4 A B NiMH 70 119.75 8 A B Lith 125 85.50 3 B C NiCd 70 57.25 5 C NiCd 125 57.50 6 C NiMH 125 49.50 9 C 27-28

Conclusions At 15 degrees there is no significant diff. At 70 degrees Lithium-ion or Nickel-MH are significantly different from Ni-Cd At 125 degrees there was no significant diff. If we had a little more power, we might be able to show that the Lithium-ion battery was best at 70 or 125 degrees, and equivalent to the others 15 degrees. Further testing with more observations might be useful. 27-29

Upcoming in Lecture 28... Additive Models One Case per Treatment Unequal Sample Sizes 27-30