Decomposing a 3-way interaction

Similar documents
Statistics Lab #7 ANOVA Part 2 & ANCOVA

Design and Analysis of Experiments Prof. Jhareswar Maiti Department of Industrial and Systems Engineering Indian Institute of Technology, Kharagpur

Combinational Circuits Digital Logic (Materials taken primarily from:

Modeling Effects and Additive Two-Factor Models (i.e. without interaction)

Analysis of Two-Level Designs

General Factorial Models

Stat 602 The Design of Experiments


1.4 Euler Diagram Layout Techniques

Lesson 5: Identical Triangles

CMPE223/CMSE222 Digital Logic

4.4 Problems and Solutions (last update 12 February 2018)

Recitation Session 6

Counting the Number of Fixed Points in the Phase Space of Circ n

Simplification of Boolean Functions

ECE380 Digital Logic

Module -7. Karnaugh Maps

rm(list=ls(all=true)) # number of factors. # number of replicates.

Source df SS MS F A a-1 [A] [T] SS A. / MS S/A S/A (a)(n-1) [AS] [A] SS S/A. / MS BxS/A A x B (a-1)(b-1) [AB] [A] [B] + [T] SS AxB

Name. 6b, Triangles. 1. A bridge contains beams that form triangles, as shown below.

Stat 5303 (Oehlert): Unreplicated 2-Series Factorials 1

The same procedure is used for the other factors.

The University of British Columbia

Psychology 282 Lecture #21 Outline Categorical IVs in MLR: Effects Coding and Contrast Coding

4-8 Similar Figures and Proportions. Warm Up Problem of the Day Lesson Presentation Lesson Quizzes

Spring Semester 13, Dr. Punch. Exam #1 (2/14), form 1 A

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

CPSC 203 Extra review and solutions

CHAPTER 40 CARTESIAN AND POLAR COORDINATES

General Factorial Models

Graduate Institute of Electronics Engineering, NTU. CH5 Karnaugh Maps. Lecturer: 吳安宇教授 Date:2006/10/20 ACCESS IC LAB

DKT 122/3 DIGITAL SYSTEM 1

Experiment 3: Logic Simplification

PM - A REDUCE Pattern Matcher

What is Structural Testing?

Dataflow Processing. A.R. Hurson Computer Science Department Missouri Science & Technology

BCNF. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong BCNF

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

Materials Voyage 200/TI-92+ calculator with Cabri Geometry Student activity sheet Shortest Distance Problems. Introduction

UNIT 1 SIMILARITY, CONGRUENCE, AND PROOFS Lesson 6: Defining and Applying Similarity Instruction

Integrated Exercise 2 (Chapter 5 - Chapter 7)

Transformations and Isometries

610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Fractional. Design of Experiments. Overview. Scenario

Specifying logic functions

CPSC 230 Extra review and solutions

1ACE Exercise 17. Name Date Class. 17. Which figure does NOT have rotation symmetry?

Chapter 2 Combinational

Split-Plot General Multilevel-Categoric Factorial Tutorial

Learning Log Title: CHAPTER 6: TRANSFORMATIONS AND SIMILARITY. Date: Lesson: Chapter 6: Transformations and Similarity

Intermediate 2 - Unit 2 - Practice NAB 1

Activity 8. Midsegment of a Triangle. Name. Date

Parallel development II 11/5/18

Angle Bisectors in a Triangle- Teacher

Code No: 07A3EC03 Set No. 1

no triangle can have more than one right angle or obtuse angle.

Pradeep Kumar J, Giriprasad C R

Logic Gates and Boolean Algebra ENT263

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

Introduction to Programmable Logic Devices (Class 7.2 2/28/2013)

CDAA No. 4 - Part Two - Multiple Regression - Initial Data Screening

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Transactions in Euclidean Geometry

DIPLOMA IN COMPUTER STUDIES PROGRESS TEST

3. Understanding Quadrilaterals

CS470: Computer Architecture. AMD Quad Core

CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Formatting for TLM - Part I

GEOMETRY HONORS COORDINATE GEOMETRY PACKET

SEE1223: Digital Electronics

MODELING FOR RESIDUAL STRESS, SURFACE ROUGHNESS AND TOOL WEAR USING AN ADAPTIVE NEURO FUZZY INFERENCE SYSTEM

Directions: Working with your group, cut out the shapes below and sort them into 3 groups based on similar characteristics.

A ray is a part of a line that starts at an endpoint and extends infinitely in one direction.

1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST. 1. A computer program is:

? Answer:

Combinational Logic Circuits

G.C.E. (A/L) Examination November 2015 Conducted by Field Work Center, Thondaimanaru. In Collaboration with the Zonal Education Office, Jaffna

Slides for Lecture 15

DESIGN, ANALYSIS AND MATHEMATICAL MODELLING: EFFICYCLE

Decision Tables - Wikipedia Decision Table-Based Testing

Lesson 23: Base Angles of Isosceles Triangles Day 1

2.6 BOOLEAN FUNCTIONS

Multi-Factored Experiments

An Example of Using inter5.exe to Obtain the Graph of an Interaction

Chapter 1-2 Points, Lines, and Planes

a) 1/9 b) 2/9 c)9/10 d)none of these Q3. Find x

The Pythagorean Theorem: Prove it!!

Flowchart & Algorithm

Period: Date Lesson 13: Analytic Proofs of Theorems Previously Proved by Synthetic Means

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Geometry--Unit 10 Study Guide

Vocabulary Point- Line- Plane- Ray- Line segment- Congruent-

Section 4 General Factorial Tutorials

.(3, 2) Co-ordinate Geometry Co-ordinates. Every point has two co-ordinates. Plot the following points on the plane. A (4, 1) D (2, 5) G (6, 3)

DESIGN OF EXPERIMENTS IN THE MÖBIUS MODELING FRAMEWORK PATRICK GERALD WEBSTER

Practice Exam #3, Math 100, Professor Wilson. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MAKE GEOMETRIC CONSTRUCTIONS

Mathematics 4330/5344 #1 Matlab and Numerical Approximation

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Transcription:

Decomposing a 3-way interaction PSYCH 710 Initialize R Initialize R by entering the following commands at the prompt. You must type the commands exactly as shown. options(contrasts=c("contr.sum","contr.poly") ) # set definition of contrasts load(file=url("http://psycserv.mcmaster.ca/bennett/psy710/datasets/abc.rdata") ) closeallconnections() abc In class we have only considered factorial experiments that include two factors. Here we will examine how to conduct an ANOVA to analyze an experiment that has three factors. In particular, this example illustrates what how to decompose a significant 3-way interaction into simple interaction effects and simple simple main effects. If the A B C interaction, then the first step is to analyze the simple interaction effect of A B at each level of C (or A C at each level of B... or B C at each level of A). Essentially, we are reducing our 3-way ANOVA to a series of 2-way ANOVAs. If a simple interaction effect is significant say the simple interaction effect of A B at c1), then we analyze the simple simple main effect of A at b1 and b2 (at c1), and simple simple main effect of B at a1 and a2 (at c1). A between-subjects factorial design was used to measure the effects of 2 levels of factor A, 2 levels of factor B, and 3 levels of factor C. The data are stored in the data frame abc.data. Analyze the data using ANOVA. If there is a significant interaction, analyze the simple interaction effects down to the level of simple main effects or simple simple main effects. (There is no need to use linear comparisons to analyze main effects, simple main effects, or simple simple main effects). # inspect means, standard deviations, and n: with(abc.data,tapply(score,list(b,a,c),mean)) with(abc.data,tapply(score,list(b,a,c),sd)) with(abc.data,tapply(score,list(b,a,c),length)) # overall ANOVA: summary(aov(score~a*b*c,data=abc.data)) ## A 1 30 30 0.29 0.5897 ## B 1 82 82 0.80 0.3742 ## C 2 113 56 0.55 0.5794 ## A:B 1 727 727 7.08 0.0093 ** ## A:C 2 263 132 1.28 0.2832 ## B:C 2 2340 1170 11.39 4.2e-05 *** 1

## A:B:C 2 1384 692 6.74 0.0019 ** ## Residuals 84 8626 103 MS.resid.2 <- 102.69 df.resid.2 <- 84 Answer: Note that the 3-way interaction is significant. Therefore, we will now analyze simple interaction effects by evaluating the A B interaction at each level of C. # # simple AxB interaction at c1 summary(aov(score~a*b,data=subset(abc.data,c=="c1"))) ## A 1 233 233 2.50 0.1248 ## B 1 1106 1106 11.89 0.0018 ** ## A:B 1 211 211 2.26 0.1436 ## Residuals 28 2606 93 (F.AxB.c1 <- 210.65 / MS.resid.2) ## [1] 2.051 (p.axb.c1 <- 1-pf(F.AxB.c1,1,df.resid.2)) ## [1] 0.1558 # analyze simple main effects of A and B at c1: (F.A.c1 <- 233.07 / MS.resid.2) ## [1] 2.27 (F.B.c1 <- 1106.43 / MS.resid.2) ## [1] 10.77 (p.a.c1 <- 1-pf(F.A.c1,1,df.resid.2)) ## [1] 0.1357 (p.b.c1 <- 1-pf(F.B.c1,1,df.resid.2)) ## [1] 0.001501 # # simple AxB interaction at c2 summary(aov(score~a*b,data=subset(abc.data,c=="c2"))) 2

## A 1 57 57 0.48 0.4953 ## B 1 1033 1033 8.66 0.0065 ** ## A:B 1 728 728 6.11 0.0198 * ## Residuals 28 3337 119 (F.AxB.c2 <- 728.46 / MS.resid.2) ## [1] 7.094 (p.axb.c2 <- 1-pf(F.AxB.c2,1,df.resid.2)) ## [1] 0.00927 # simple AxB interaction is significant: with(subset(abc.data,c=="c2"),tapply(score,list(a,b),mean)) ## b1 b2 ## a1 100.24 102.1 ## a2 88.03 108.9 Answer: The simple interaction A B at c2 is significant, so now we analyze the simple simple main effects of A at b1 and b2 (at c2), and of B at a1 and a2 (at c2). # simple simple main effect of A at b1 and c2: summary(aov(score~a,data=subset(abc.data,b=="b1"&c=="c2"))) ## A 1 596 596 5.77 0.031 * ## Residuals 14 1446 103 (F.A.b1.c2 <- 596.24/MS.resid.2 ) ## [1] 5.806 (p.a.b1.c2 <- 1-pf(F.A.b1.c2,1,df.resid.2)) ## [1] 0.01815 # simple simple main effect of A at b2 and c2: summary(aov(score~a,data=subset(abc.data,b=="b2"&c=="c2"))) ## A 1 189 189 1.4 0.26 ## Residuals 14 1891 135 (F.A.b2.c2 <- 189.11/MS.resid.2 ) ## [1] 1.842 3

(p.a.b2.c2 <- 1-pf(F.A.b2.c2,1,df.resid.2)) ## [1] 0.1784 # simple simple main effect of B at a1 and c2: summary(aov(score~b,data=subset(abc.data,a=="a1"&c=="c2"))) ## B 1 13 13.2 0.12 0.73 ## Residuals 14 1526 109.0 (F.B.a1.c2 <- 13.24/MS.resid.2 ) ## [1] 0.1289 (p.b.a1.c2 <- 1-pf(F.B.a1.c2,1,df.resid.2)) ## [1] 0.7204 # simple simple main effect of B at a2 and c2: summary(aov(score~b,data=subset(abc.data,a=="a2"&c=="c2"))) ## B 1 1748 1748 13.5 0.0025 ** ## Residuals 14 1811 129 (F.B.a2.c2 <- 1747.94/MS.resid.2 ) ## [1] 17.02 (p.b.a2.c2 <- 1-pf(F.B.a2.c2,1,df.resid.2)) ## [1] 8.658e-05 Answer: Finally, we analyze the simple interaction effect of A B at c3: # # simple AxB interaction at c3 summary(aov(score~a*b,data=subset(abc.data,c=="c3"))) ## A 1 3 3 0.03 0.8572 ## B 1 282 282 2.95 0.0970. ## A:B 1 1172 1172 12.24 0.0016 ** ## Residuals 28 2683 96 (F.AxB.c3 <- 1172.38 / MS.resid.2) ## [1] 11.42 4

(p.axb.c3 <- 1-pf(F.AxB.c3,1,df.resid.2)) ## [1] 0.001106 # the simple AxB interaction at c3 is significant # analyze simple simple main effects of A at b1 and c3: summary(aov(score~a,data=subset(abc.data,b=="b1"&c=="c3"))) ## A 1 527 527 4.15 0.061. ## Residuals 14 1777 127 (F.A.b1.c3 <- 526.89/MS.resid.2 ) ## [1] 5.131 (p.a.b1.c3 <- 1-pf(F.A.b1.c3,1,df.resid.2)) ## [1] 0.02608 # simple simple main effect of A at b2 and c3: summary(aov(score~a,data=subset(abc.data,b=="b2"&c=="c3"))) ## A 1 649 649 10 0.0069 ** ## Residuals 14 906 65 (F.A.b2.c3 <- 648.65/MS.resid.2 ) ## [1] 6.317 (p.a.b2.c3 <- 1-pf(F.A.b2.c3,1,df.resid.2)) ## [1] 0.01387 5