Chapter 13. Factorial ANOVA. Patrick Mair 2015 Psych Factorial ANOVA 0 / 19

Similar documents
Introduction to Analysis of Variance (ANOVA) The Structural Model, The Summary Table, and the One- Way ANOVA

Setting up group models Part 1 NITP, 2011

Analysis of Variance. Copyright 2014 Pearson Education, Inc.

ANOVA - Implementation.

One-factor ANOVA by example

Legendre et al Appendices and Supplements, p. 1

PLANNED ORTHOGONAL CONTRASTS

Class 23: Chapter 14 & Nested ANOVA NOTES: NOTES: NOTES:

Factorial Analysis of Variance

Unit 4: Inference for numerical variables Lecture 3: ANOVA

One-way ANOVA: round, narrow, wide

NCSS Statistical Software

Running head: DATA ANALYSIS AND INTERPRETATION 1

Citation for published version (APA): Canudas Romo, V. (2003). Decomposition Methods in Demography Groningen: s.n.

Stats 2002: Probabilities for Wins and Losses of Online Gambling

y ) s x x )(y i (x i r = 1 n 1 s y Statistics Lecture 7 Exploring Data , y 2 ,y n (x 1 ),,(x n ),(x 2 ,y 1 How two variables vary together

Navigate to the golf data folder and make it your working directory. Load the data by typing

Week 7 One-way ANOVA

Chapter 2: ANOVA and regression. Caroline Verhoeven

EXPLORING MOTIVATION AND TOURIST TYPOLOGY: THE CASE OF KOREAN GOLF TOURISTS TRAVELLING IN THE ASIA PACIFIC. Jae Hak Kim

Factorial ANOVA Problems

Taking Your Class for a Walk, Randomly

Analysis of recent swim performances at the 2013 FINA World Championship: Counsilman Center, Dept. Kinesiology, Indiana University

a) List and define all assumptions for multiple OLS regression. These are all listed in section 6.5

BBS Fall Conference, 16 September Use of modeling & simulation to support the design and analysis of a new dose and regimen finding study

Announcements. Lecture 19: Inference for SLR & Transformations. Online quiz 7 - commonly missed questions

Announcements. % College graduate vs. % Hispanic in LA. % College educated vs. % Hispanic in LA. Problem Set 10 Due Wednesday.

Hitting with Runners in Scoring Position

N. Abid 2 and M. Idrissi 1 ABSTRACT

Sport statistics: how to assemble your team elivian.nl high quality, poorly written update history current(v2.1):7-oct-16, original(v1):13-sep-14

Biostatistics & SAS programming

MRI-2: Integrated Simulation and Safety

DISMAS Evaluation: Dr. Elizabeth C. McMullan. Grambling State University

BIOL 101L: Principles of Biology Laboratory

A Combined Recruitment Index for Demersal Juvenile Cod in NAFO Divisions 3K and 3L

Name May 3, 2007 Math Probability and Statistics

1. OVERVIEW OF METHOD

Data Set 7: Bioerosion by Parrotfish Background volume of bites The question:

A few things to remember about ANOVA

Multilevel Models for Other Non-Normal Outcomes in Mplus v. 7.11

GLMM standardisation of the commercial abalone CPUE for Zones A-D over the period

CHAP Summary 8 TER 155

NBA TEAM SYNERGY RESEARCH REPORT 1

COMPLETING THE RESULTS OF THE 2013 BOSTON MARATHON

Guidelines for Applying Multilevel Modeling to the NSCAW Data

Case Processing Summary. Cases Valid Missing Total N Percent N Percent N Percent % 0 0.0% % % 0 0.0%

Confidence Interval Notes Calculating Confidence Intervals

Driv e accu racy. Green s in regul ation

Competition Jumping Horses: Effects of Age, Sex and Breed on the Fei/Wbfsh World Ranking

MGB 203B Homework # LSD = 1 1

Boston Marathon Data. Instructor: G. William Schwert

1. The data below gives the eye colors of 20 students in a Statistics class. Make a frequency table for the data.

Classroom Tips and Techniques: The Partial-Fraction Decomposition. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

Paper prepared by the Secretariat

Distancei = BrandAi + 2 BrandBi + 3 BrandCi + i

Major League Baseball Offensive Production in the Designated Hitter Era (1973 Present)

Empirical Example II of Chapter 7

Lab 11: Introduction to Linear Regression

Example 1: One Way ANOVA in MINITAB

ESP 178 Applied Research Methods. 2/26/16 Class Exercise: Quantitative Analysis

Session 2: Introduction to Multilevel Modeling Using SPSS

In my left hand I hold 15 Argentine pesos. In my right, I hold 100 Chilean

STT 315 Section /19/2014

Chapter 9: Hypothesis Testing for Comparing Population Parameters

Safety at Intersections in Oregon A Preliminary Update of Statewide Intersection Crash Rates

Sample Final Exam MAT 128/SOC 251, Spring 2018

Evaluation of Regression Approaches for Predicting Yellow Perch (Perca flavescens) Recreational Harvest in Ohio Waters of Lake Erie

arxiv: v1 [stat.ap] 18 Nov 2018

Guide to Computing Minitab commands used in labs (mtbcode.out)

Select Boxplot -> Multiple Y's (simple) and select all variable names.

ANALYSIS OF THE DOMINATING POWER OF SERVICE RECEPTION IN VOLLEYBALL IN DIFFERENT LEVELS OF COMPETITIONS

Building an NFL performance metric

Analyses of the Scoring of Writing Essays For the Pennsylvania System of Student Assessment

Online Companion to Using Simulation to Help Manage the Pace of Play in Golf

Average Runs per inning,

DIFFERENCES BETWEEN THE WINNING AND DEFEATED FEMALE HANDBALL TEAMS IN RELATION TO THE TYPE AND DURATION OF ATTACKS

Staking plans in sports betting under unknown true probabilities of the event

5.1 Introduction. Learning Objectives

Title: Modeling Crossing Behavior of Drivers and Pedestrians at Uncontrolled Intersections and Mid-block Crossings

Chapter 12 Practice Test

Design of Experiments Example: A Two-Way Split-Plot Experiment

Addendum to SEDAR16-DW-22

Descriptive Statistics. Dr. Tom Pierce Department of Psychology Radford University

Is lung capacity affected by smoking, sport, height or gender. Table of contents

Lecture 16: Chapter 7, Section 2 Binomial Random Variables

(JUN10SS0501) General Certificate of Education Advanced Level Examination June Unit Statistics TOTAL.

Why We Should Use the Bullpen Differently

The final set in a tennis match: four years at Wimbledon 1

OREGON DEPARTMENT OF FISH AND WILDLIFE SUMMARY OF COUGAR POPULATION MODEL AND EFFECTS OF LETHAL CONTROL

Surface Texture Gage study in the qs-stat Measurement System Analysis Module

CHAPTER ANALYSIS AND INTERPRETATION Average total number of collisions for a try to be scored

(c) The hospital decided to collect the data from the first 50 patients admitted on July 4, 2010.

Pressured Applied by the Emergency/Israeli Bandage

IDENTIFICATION OF WIND SEA AND SWELL EVENTS AND SWELL EVENTS PARAMETERIZATION OFF WEST AFRICA. K. Agbéko KPOGO-NUWOKLO

PradiptaArdiPrastowo Sport Science. SebelasMaret University. Indonesia

CS 7641 A (Machine Learning) Sethuraman K, Parameswaran Raman, Vijay Ramakrishnan

This file is part of the following reference:

Journal of Quantitative Analysis in Sports Manuscript 1039

Package STI. August 19, Index 7. Compute the Standardized Temperature Index

MJA Rev 10/17/2011 1:53:00 PM

Transcription:

Chapter 13 Factorial ANOVA Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 0 / 19

Today s Menu Now we extend our one-way ANOVA approach to two (or more) factors. Factorial ANOVA: two-way ANOVA, SS decomposition, interactions. Unbalanced designs. Factorial ANOVA through a linear model: simple effect analysis. Nonparametric approaches. Mixed ANOVA (between-within subject designs) Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 1 / 19

Extension to Two Factors The data scenario for this unit is: Two or more categorical variables (factors). One metric variable (response). We are interested in which factors (or factor combinations) have an influence on the response variable. Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 2 / 19

Effects in Two-Way ANOVA In a one-way ANOVA the only possible effect was due to the factor. Question: Do the response means differ across factor levels (groups)? In a two-way ANOVA with factors A and B we have: Main effect A: the means of Y differ across the levels of A Main effect B: the means of Y differ across the levels of B Interaction effect: the means of Y differ across combinations of A and B Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 3 / 19

Honk Example In the t-test unit we looked for differences in the average honking frequency between a fancy BMW and a small Ford KA. Now: This time we use a different response variable: Duration until the first honk. We have two factors: car and gender. What we have is a 2 2 design (2 car categories, 2 gender categories). Note that we are not limited to binary factors. Research question: Do car type and/or gender influence the average honking duration? Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 4 / 19

The F-test and Sum of Squares We have our well-known SS decomposition: SSTO = SSTR + SSE Now, the SSTR (based on deviation of the cell means from the grand mean) looks a little bit more complex: SSTR = SSTR A + SSTR B + SSTR A B with: SSTR A as the deviation of the A factor level mean from the grand mean. SSTR B as the deviation of the B factor level mean from the grand mean. SSTR AB = SSTO SSTR A SSTR B SSE. The F -statistics are based on these SS and the corresponding df. Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 5 / 19

Assumptions Basically there are two assumptions in factorial ANOVA: For small samples, normal residuals/response within each factor combination. Variance homogeneity across factor combinations: Levene test. If possible, keep your design balanced (same number of observations within each factor combination). With unbalanced designs things are getting tricky in factorial ANOVA. More on that later. Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 6 / 19

Main Effects Structures for the Honking Example Hypothetical main effect structures (means across groups) for our car example (dashed line male, solid line female). Null Model Main Effect Car 3 4 5 6 7 3 4 5 6 7 BMW Ford BMW Ford Main Effect Sex Main Effect Car + Sex 3 4 5 6 7 3 4 5 6 7 BMW Ford BMW Ford Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 7 / 19

Interactions The interpretation of a two-way (or more) ANOVA depends on the interaction structure. If the interaction effect is significant, we need to look at the interaction plots and distinguish: 1) Ordinal interactions: even though significant, main effects interpretable. B A interaction A B interaction Means Factor B 1 2 3 4 5 6 b1 b2 Means Factor A 1 2 3 4 5 6 a1 a2 a1 a2 b1 b2 Factor A Factor B Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 8 / 19

Interactions 2) Disordinal Interactions: if significant, main effects not interpretable. B A interaction A B interaction Means Factor B 1 2 3 4 5 6 b1 b2 Means Factor A 1 2 3 4 5 6 a1 a2 a1 a2 b1 b2 Factor A Factor B In this case we can go back to the interaction plot and interpret the interaction effect. Another possibility would be to define special contrasts and look at the effect of one factor at individual levels of the other factor (simple effect analysis). Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 9 / 19

Interactions 3) Hybrid Interactions: if significant, main effect for B interpretable, main effect for A not. B A interaction A B interaction Means Factor B 1 2 3 4 5 6 b1 b2 Means Factor A 1 2 3 4 5 6 a1 a2 a1 a2 b1 b2 Factor A Factor B Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 10 / 19

[ Factorial ANOVA ] Unbalanced Designs Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 11 / 19

Unbalanced Designs An unbalanced design can occur: because of subject attrition, because the study is observational in nature and subjects were taken as they came. The main problem is that the factors lose their independence from one another. It then makes a difference in what order the factors are entered into the model formula. A quick and dirty way would be to try entering the factors in different orders to see how much of a difference this makes to the outcome of the analysis. Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 12 / 19

Unbalanced Designs Different types of SS: Type I SS (sequential SS): Used by aov(), SSTR A SSTR B A SSTR AB A,B Type II SS: Implemented in Anova(), SSTR A B ; SSTR B A. It assumes no interaction, main effects are interpretable independently from each other. Type III SS: Implemented in Anova(), SSTR A B,AB ; SSTR B A,AB. This approach is therefore valid in the presence of significant interactions. 1 A few remarks: Note that the interaction effect doesn t change at all across the approaches. It is all about the main effects. Note that with unbalanced designs the parameter interpretation within the context of a linear model (design matrix) becomes difficult. There is lots of controversy/confusion in literature regarding how to formulate hypotheses, contrasts, and SS in unbalanced designs. Type II SS is the way to go if the interaction is not significant. If we have a significant interaction, we can t interpret the main effects anyway (except for ordinal and hybrid interactions). 1 But if we have disordinal significant interactions we shouldn t interpret the main effects anyway! Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 13 / 19

[ Factorial ANOVA ] Linear Models Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 14 / 19

Factorial ANOVA as Linear Models The design matrix principle is exactly the same as we ve seen so far. dummy coding (contr.treatment) effects coding (contr.sum) other special coding schemes such as Helmert, polynomial, etc. The interaction contrasts result from main-effects multiplication. Another nice implication of doing 2-way ANOVA through a linear model specification is that we can do a simple effect analysis in order to break down significant interactions. Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 15 / 19

Extensions We ve already seen how painful interactions can be for two variables. Things become much worse for 3, 4, etc. and at some point it becomes uninterpretable. Keep the number of factors low, if possible! There is an example in the R code file for a 3-way ANOVA. Nonparametric approaches: For 2-way ANOVA the WRS2 package offers several options: 2-way ANOVA on trimmed means (t2way()) 2-way ANOVA on medians (med2way()) The nonparametric version is t3way() in the WRS2 package. Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 16 / 19

[ Factorial ANOVA ] Mixed ANOVA Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 17 / 19

Mixed ANOVA Let s now combine dependent measure ANOVA with standard between group ANOVA. This leads to a mixed ANOVA (aka split-plot design or between-within subjects ANOVA). We can fit these models through: classic between-within ANOVA: ezanova(). mixed effects models: greater flexibility (lme()) Nothing changes in terms of assumptions and interpretation. Robust alternatives are given in the WRS2 package by means of bwtrim(). Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 18 / 19

Summary Today we have seen higher-order ANOVA models with possibly unbalanced designs: 2-way ANOVA, 3-way ANOVA, robust alternatives. Note that you can also use post-hoc tests. The glht() function in the multcomp package is pretty powerful. However, a more modern approach is to incorporate special hypotheses using design matrices. We also started elaborating on mixed ANOVA (between-within subjects) designs. Such settings will be extensively covered in the mixed-effects units. Readings due to Tues: Field Chapter 11 (ANCOVA). Patrick Mair 2015 Psych 1950 13 Factorial ANOVA 19 / 19