STAT22200 Spring 2014 Chapter 13B

Similar documents
Lecture 7: Latin Square and Related Design

Lecture 7: Latin Squares and Related Designs

Topic 7: Incomplete, double-blocked designs: Latin Squares [ST&D sections ]

STAT22200 Spring 2014 Chapter 5

Power & Sample Size Calculation

Factorial and Unbalanced Analysis of Variance

Unit 6: Orthogonal Designs Theory, Randomized Complete Block Designs, and Latin Squares

Vladimir Spokoiny Design of Experiments in Science and Industry

Finite arithmetic and Latin squares

Chapter 4 Randomized Blocks, Latin Squares, and Related Designs Solutions

STAT22200 Spring 2014 Chapter 8A

Lec 1: An Introduction to ANOVA

More about Single Factor Experiments

DESAIN EKSPERIMEN BLOCKING FACTORS. Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

Chapter 4 Randomized Blocks, Latin Squares, and Related Designs Solutions

Two-Way Factorial Designs

Chapter 4: Randomized Blocks and Latin Squares

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

Lec 5: Factorial Experiment

Week 3 & 4 Randomized Blocks, Latin Squares, and Related Designs

Stat 6640 Solution to Midterm #2

STAT22200 Spring 2014 Chapter 14

Note: The problem numbering below may not reflect actual numbering in DGE.

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

Assignment 6 Answer Keys

Stat 217 Final Exam. Name: May 1, 2002

Allow the investigation of the effects of a number of variables on some response

Contents. TAMS38 - Lecture 6 Factorial design, Latin Square Design. Lecturer: Zhenxia Liu. Factorial design 3. Complete three factor design 4

Chapter 4 Experiments with Blocking Factors

STAT22200 Chapter 14

Introduction. Chapter 8

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks.

Lecture 5: Comparing Treatment Means Montgomery: Section 3-5

STAT 430 (Fall 2017): Tutorial 8

Multiple Predictor Variables: ANOVA

Unbalanced Data in Factorials Types I, II, III SS Part 1

Figure 9.1: A Latin square of order 4, used to construct four types of design

These are all actually contrasts (the coef sum to zero). What are these contrasts representing? What would make them large?

Blocks are formed by grouping EUs in what way? How are experimental units randomized to treatments?

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur

Field Work and Latin Square Design

Block Designs. i j ij. pa.1.a. Jack conducts the analysis as a Completely Randomized Design (independent samples),

Chapter 11: Factorial Designs

Lecture 9: Factorial Design Montgomery: chapter 5

Linear Combinations. Comparison of treatment means. Bruce A Craig. Department of Statistics Purdue University. STAT 514 Topic 6 1

Factorial designs. Experiments

Increasing precision by partitioning the error sum of squares: Blocking: SSE (CRD) à SSB + SSE (RCBD) Contrasts: SST à (t 1) orthogonal contrasts

. Example: For 3 factors, sse = (y ijkt. " y ijk

Analysis of variance

The Distribution of F

Statistics GIDP Ph.D. Qualifying Exam Methodology

Multistratum Fractional Factorial Designs. Ching-Shui Cheng and Pi-Wen Tsai. University of California, Berkeley and National Taiwan Normal University

STAT 705 Chapter 19: Two-way ANOVA

Reference: Chapter 6 of Montgomery(8e) Maghsoodloo

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

STAT 115:Experimental Designs

Two-Way Analysis of Variance - no interaction

Lecture 15 Topic 11: Unbalanced Designs (missing data)

Multiple comparisons - subsequent inferences for two-way ANOVA

MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS FALL 1999

STAT 525 Fall Final exam. Tuesday December 14, 2010

Unit 8: 2 k Factorial Designs, Single or Unequal Replications in Factorial Designs, and Incomplete Block Designs

ANOVA: Analysis of Variation

RCB - Example. STA305 week 10 1

2. Two distinct error terms (Error for main plot effects > Error for subplot effects)

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

Practice Midterm Exam 1 March, 2005

23. Fractional factorials - introduction

Orthogonal contrasts for a 2x2 factorial design Example p130

arxiv: v1 [math.ho] 4 Jul 2007

Ch. 5 Two-way ANOVA: Fixed effect model Equal sample sizes

19. Blocking & confounding

Written Exam (2 hours)

FACTORIAL DESIGNS and NESTED DESIGNS

PLSC PRACTICE TEST ONE

Chapter 6 Randomized Block Design Two Factor ANOVA Interaction in ANOVA

3. Design Experiments and Variance Analysis

BIOL 933!! Lab 10!! Fall Topic 13: Covariance Analysis

Outline Topic 21 - Two Factor ANOVA

STAT 5200 Handout #7a Contrasts & Post hoc Means Comparisons (Ch. 4-5)

Unit 9: Confounding and Fractional Factorial Designs

Chapter 12. Analysis of variance

Mean Comparisons PLANNED F TESTS

Multiple comparisons The problem with the one-pair-at-a-time approach is its error rate.

Statistics for EES Factorial analysis of variance

MODELS WITHOUT AN INTERCEPT

STAT 705 Chapter 19: Two-way ANOVA

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

Chapter 5 Introduction to Factorial Designs Solutions

DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective

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

Answer Keys to Homework#10

These are multifactor experiments that have

Assignment 9 Answer Keys

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

Lecture 20: Linear model, the LSE, and UMVUE

PLS205 Lab 6 February 13, Laboratory Topic 9

TWO-LEVEL FACTORIAL EXPERIMENTS: BLOCKING. Upper-case letters are associated with factors, or regressors of factorial effects, e.g.

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

Chapter 10. Design of Experiments and Analysis of Variance

Transcription:

STAT22200 Spring 2014 Chapter 13B Yibi Huang May 27, 2014 13.3.1 Crossover Designs 13.3.4 Replicated Latin Square Designs 13.4 Graeco-Latin Squares Chapter 13B - 1

13.3.1 Crossover Design (A Special Latin-Square Design) When a sequence of treatments is given to a subject over several time periods, need to block on subjects, because each subject tends to respond differently, and need to block on time period, because there may consistent differences over time due to growth, aging, disease progression, or other factors. Such a design is called a crossover design, which is a common application of the Latin Square designs. Chapter 13B - 2

Example 13.5 Bioequivalence of Drug Delivery (p.326) Objectives Investigate whether different drug delivery systems have similar biological effects. Response variable Average blood concentration of the drug during certain time interval after the drug has been administrated. Treatments 3 different drug delivery systems: A solution, B tablet, C capsule Blocking on both subjects and time period Data & design: subject period 1 2 3 1 1799A 2075C 1396B 2 1846C 1156B 868A 3 2147B 1777A 2291C Chapter 13B - 3

13.3.4 Replicated Latin Square Design In Example 13.5, with a single 3 3 Latin square, there are only 2 degrees of freedom left for estimating the error. One can increase the d.f. for errors by replicating more Latin squares. Example 13.6 is a continuation of Example 13.5. There are 12 subjects, instead of 3 The 12 subjects are divided into 4 groups of 3 each, and a Latin square design is arranged for each group Data are shown on the next page and the data file is available at http://users.stat.umn.edu/~gary/book/fcdae.data/exmpl13.10 Chapter 13B - 4

Data and Design for Example 13.6 square 1 square 2 subject period 1 2 3 4 5 6 1 1799A 2075C 1396B 3100B 1451C 3174A 2 1846C 1156B 868A 3065A 1217B 1714C 3 2147B 1777A 2291C 4077C 1288A 2919B square 3 square 4 subject period 7 8 9 10 11 12 1 1430C 1186A 1135B 873C 2061A 1053B 2 836A 642B 1305C 1426A 2433B 1534C 3 1063B 1183C 984A 1540B 1337C 1583A Each (subject, treatment) combination appears exactly once Each (period, treatment) combination appears exactly 4 times Note the 4 Latin-squares have a common row block (period). In this case, we say the row block is reused. Chapter 13B - 5

A Model for the Replicated Latin Square Design with row block reused When Latin squares are replicated (each one separately randomized), the appropriate linear model will depend on which blocks (if any) are reused. In Example 13.6, the row variable, period, is reused. An appropriate model would be y ijk = µ + α i + β j + γ k + ε ijk with the constraints 3 i=1 α i = 3 The parameter estimates are again (trt) (period) (subject) j=1 β j = 12 µ = ȳ, α i = ȳ i ȳ β j = ȳ j ȳ γ k = ȳ k ȳ Chapter 13B - 6 k=1 γ k = 0.

How Do Replicated Latin Square Design w/ Row Block Reused Work? Show that E[y B ] = µ + α B, E[y 1 ] = µ + β 1, E[y 3 ] = µ + γ 3. Chapter 13B - 7

ANOVA Table for Latin Square w/ m Replicates, Row Block Reused Number of Latin Squares = m Source d.f. SS MS F -value Row-Block g 1 SS row SS row /(g 1) MS row /MSE Column-Block mg 1 SS col SS col /(mg 1) MS col /MSE Treatment g 1 SS Trt SS Trt /(g 1) MS Trt /MSE Error (mg 2)(g 1) SSE SSE/[(g 2)(g 1)] Total mg 2 1 SS total where df error = df total df row df col df trt = mg 2 1 2(g 1) (mg 1) = (mg 2)(g 1) SS row = (ȳ j ȳ ) 2 = mg g (ȳ j ȳ ) 2, ijk j=1 SS col = (ȳ k ȳ ) 2 = g mg (ȳ k ȳ ) 2, ijk k=1 SS trt = ijk (ȳ i ȳ ) 2 = mg g SS total = ijk (y ijk ȳ ) 2 SSE = SS total SS row SS col SS trt Chapter 13B - 8 i=1 (ȳ i ȳ ) 2,

Response: area Df Sum Sq Mean Sq F value Pr(>F) as.factor(period) 2 737751 368875 1.7965 0.1916 as.factor(subject) 11 16385060 1489551 7.2546 7.475e-05 *** as.factor(trt) 2 81458 40729 0.1984 0.8217 Residuals 20 4106500 205325 There is no evidence that the three drug delivery systems have different biological effects. Chapter 13B - 9

Latin Square w/ Replicates, Neither Row nor Column Reused Automobile Emissions Example Revisited Suppose there were 8 cars and 8 drivers available. We can from 2 Latin Squares. Cars Drivers 1 2 3 4 I A B D C II D C A B III B D C A IV C A B D Cars Drivers 5 6 7 8 V A B C D VI C D A B VII D C B A VIII B A D C Note the two squares have neither rows (drivers) in common nor columns (cars) in common. That is, neither rows nor columns are reused. Chapter 13B - 10

Models for Replicated Latin Squares, w/o reusing rows or columns In this case, it will be a bit problematic to use the conventional model below y ijk = µ + α i + β j + γ k + ε ijk (trt) (driver) (car) with constraints 4 i=1 α i = 8 j=1 β j = 8 k=1 γ k = 0 since in this case, even though E[ȳ i ] = µ + α i but E[ȳ j ] µ + β j, E[ȳ k ] = µ + γ k. Observe that ȳ 2 = (y D21 + y C22 + y A23 + y B24 )/4 µ + α D + β 2 + γ 1 E[ȳ 2 ] = 1 + µ + α C + β 2 + γ 2 4 + µ + α A + β 2 + γ 3 + µ + α B + β 2 + γ 4 (4µ + 4 ) = 1 4 i=1 α i } {{ } =0 Chapter 13B - 11 +4β 2 4 k=1 γ k }{{} 0 µ + β 2

Models for Replicated Latin Squares, w/o reusing rows or columns A better model for replicated Latin squares w/o reusing rows or columns is y ijkl = µ + α i + β j(l) + γ k(l) + δ l + ε ijkl (trt) (driver) (car) (square) with constraints 4 i=1 α i = 2 l=1 δ l = 0 and 4 β j(1) = j=1 8 β j(2) = j=5 4 γ k(1) = k=1 The parameter estimates are again 8 γ k(2) = 0. k=5 µ = ȳ, α i = ȳ i ȳ δ l = ȳ l ȳ β j(l) = ȳ j l ȳ l γ k(l) = ȳ kl ȳ l Chapter 13B - 12

ANOVA Table for Latin Square w/o reusing rows or columns Number of Latin Squares = m Source d.f. SS MS F -value Square m 1 SS sqr SS sqr /(m 1) MS sqr /MSE Row-Block m(g 1) SS row SS row /[m(g 1)] MS row /MSE Column-Block m(g 1) SS col SS col /[m(g 1)] MS col /MSE Treatment g 1 SS Trt SS Trt /(g 1) MS Trt /MSE Error (mg +m 3)(g 1) SSE SSE/dfE where Total mg 2 1 SS total df error = df total df sqr df row df col df trt = mg 2 1 (m 1) 2m(g 1) = (mg + m 3)(g 1) SS sqr = ijkl (ȳ l ȳ ) 2 = g 2 m l=1 (ȳ l ȳ ) 2, SS row = ijkl (ȳ j l ȳ l ) 2 = g jl (ȳ j l ȳ l ) 2, SS col = ijkl (ȳ kl ȳ l) 2 = g jl (ȳ kl ȳ l ) 2, SS trt = ijk (ȳ i ȳ ) 2 = mg g SS total = ijk (y ijkl ȳ ) 2 SSE = SS total SS row SS col SS trt Chapter 13B - 13 i=1 (ȳ i ȳ ) 2,

Skeleton ANOVA for Latin Square Designs with Replicates Number of Latin Squares = m row and col. row not column neither both reused reused not reused reused Source d.f. d.f. d.f. d.f. Square m 1 Row-Block g 1 mg 1 g 1 m(g 1) Column-Block g 1 g 1 mg 1 m(g 1) Treatment g 1 g 1 g 1 g 1 Error mg 2 1 (sum of the above) total mg 2 1 mg 2 1 mg 2 1 mg 2 1 Chapter 13B - 14

13.4 Graeco-Latin Squares Blocking Three Variations Simultaneously A Graeco-Latin square is a g g table where each entry has a Greek and a Latin letter, so that the Greek letters form a Latin square the Latin letters form a Latin square each Greek letter appears exactly once with each Latin letter. Example: Aα Bβ Cγ Bγ Cα Aβ Cβ Aγ Bα Aα Bβ Cγ Dδ Dγ Cδ Bα Aβ Bδ Aγ Dβ Cα Cβ Dα Aδ Bγ A Graeco-Latin square can be used to block for 3 variables simultaneously corresponding to rows, columns and Greek letters. The design is balanced, in that row, column, Latin and Greek effects are all orthogonal. A Graeco-Latin square can be produced from any orthogonal pair of Latin squares. Chapter 13B - 15

Exercise 13.5 Disk Drive Objectives: Investigate whether different materials of disk drive substrates may affect the amplitude of the signal obtained during readback. Response variable: Amplitudes of the signals during readback measured in microvolts 0.01. Treatments Four types of substrate materials: (A) aluminum (C) glass type I (B) nickle-plated aluminum (D) glass type II Blocking variables Machines: Four machines Operators: Four operators Days: Four different days Design: Graeco-Latin Square Chapter 13B - 16

Data and the Design Structure Operator Row Machine 1 2 3 4 Mean I A C D B (treatments) α γ δ β (days) 8 11 2 8 (responses) 7.25 II C δ A β B α D γ 7 5 2 4 4.5 III D β B δ A γ C α 3 9 7 9 7 IV B γ D α C β A δ 4 5 9 3 5.25 Column Mean 5.5 7.5 5 6 6 treatment A B C D mean 5.75 5.75 9 3.5, day α β γ δ mean 6 6.25 6.5 5.25 Data file: http://users.stat.umn.edu/~gary/book/fcdae.data/ex13.5 Chapter 13B - 17

Models for Graeco-Latin Square Designs The model for the example of Graeco-Latin design is with y ijkl = µ + θ i + τ j + ω k + φ l + ε ijkl 4 θ i = i=1 (trt) (machine) (operator) (day) 4 τ j = j=1 4 ω k = k=1 4 φ l = 0. l=1 The design is balanced, so we have the usual estimates: µ = y, θi = y i y τ j = y j y ω k = y k y φ l = y l y Statistical analysis can be done using familiar R commands. Chapter 13B - 18

Why Do Graeco-Latin Square Designs Work? What is the mean for y C? For the design of the disk drive example, y C = 1 4 (y C123 + y C214 + y C341 + y C432 ). Based on the model, we know E[y ijkl ] = µ + θ i + τ j + ω k + φ l. Thus µ + θ C + τ 1 + ω 2 + φ 3 E[y C ] = 1 + µ + θ C + τ 2 + ω 1 + φ 4 4 + µ + θ C + τ 3 + ω 4 + φ 1 + µ + θ C + τ 4 + ω 3 + φ 2 = 1 (4µ + 4θ C + 4 4 τ j + 4 ω k + 4 ) j=1 k=1 }{{}}{{} φ l l=1 }{{} =0 =0 =0 = µ + θ C Chapter 13B - 19

ANOVA Table for Graeco-Latin Square Designs Source d.f. SS MS F -value Row-Block g 1 SS row SS row /(g 1) MS row /MSE Column-Block g 1 SS col SS col /(g 1) MS col /MSE Greek-Block g 1 SS grk SS grk /(g 1) MS grk /MSE Treatment g 1 SS Trt SS Trt /(g 1) MS Trt /MSE Error (g 3)(g 1) SSE SSE/[(g 3)(g 1)] Total g 2 1 SS total where (g 3)(g 1) = g 2 1 4(g 1). SS row = ijkl (y j y ) 2, SS total = ijkl (y ijk y ) 2, SS col = ijkl (y k y ) 2, SS grk = ijkl (y l y ) 2, SS trt = ijkl (y i y ) 2, SSE = ijkl (y ijkl y i y j y k y l + 3y ) 2 = SS total SS row SS col SS grk SS trt Chapter 13B - 20

ANOVA Table For the Disk Drive Example > diskd = read.table("http://users.stat.umn.edu/~gary/book/fcdae.data/ex13.5", header=t) > diskd$machine = as.factor(diskd$machine) > diskd$operator = as.factor(diskd$operator) > diskd$day = as.factor(diskd$day) > diskd$trt = as.factor(diskd$trt) > mylm1 = lm(y ~ machine + operator + day + trt, data = diskd) > anova(mylm1) Df Sum Sq Mean Sq F value Pr(>F) machine 3 21.5 7.1667 1.0000 0.5000 operator 3 14.0 4.6667 0.6512 0.6335 day 3 3.5 1.1667 0.1628 0.9149 trt 3 61.5 20.5000 2.8605 0.2055 Residuals 3 21.5 7.1667 Just like RCBD and Latin-square designs, Graeco-Latin square designs are balanced, that switching the order of terms will not change the SS. Chapter 13B - 21

When one blocking variable is found unimportant, it can removed and a Graeco-Latin square design becomes a Latin-square design. The d.f.s and SS for the blocking variable being removed are simply pooled into the errors. After removing the day block variable: > mylm2 = lm(y ~ machine + operator + trt, data = diskd) > anova(mylm2) Df Sum Sq Mean Sq F value Pr(>F) machine 3 21.5 7.1667 1.72 0.26166 operator 3 14.0 4.6667 1.12 0.41241 trt 3 61.5 20.5000 4.92 0.04671 * Residuals 6 25.0 4.1667 Similarly, when two blocking variable are found unimportant and are removed, a Graeco-Latin square design becomes a RCBD. Their d.f.s and SS are again pooled into the errors. Chapter 13B - 22

Pairwise Comparisons in Balanced Block Designs No matter it s RCBD, Latin-squares (w/ replicates or not), or Graeco-Latin squares, one can always do pairwise comparison of treatment effects α i1 α i2 by comparing the treatment means and the SE is y i1 y i2, y i1 y i2, or y i1 y i2 SE = MSE ( 1 r + 1 ) r here r is the total # of replicates for a treatment in all blocks, e.g., r = mg in a g g Latin-square design with m replicates. The t-statistic has a t distribution, and d.f. = (d.f. for MSE) t = diff of 2 trt means SE t df of MSE using which can construct C.I. or do t-test on α i1 α i2. Chapter 13B - 23

Contrasts in Balanced Block Designs Like RCBD, a contrast C = g i=1 w iα i of treatment effects in any Latin-square (w/ replicates or not), or Graeco-Latin square designs can be estimated by g Ĉ = w i (sample mean for trt i) i=1 Here the sample mean for trt i means y i, y i or y i. The SE is SE(Ĉ) = MSE g i /r i=1 w 2 where r is the total # of replicates for a treatment in all blocks, e.g., r = mg in a g g Latin-square design with m replicates. The (1 α)100% C.I. for C: Ĉ ± t α/2,df of MSE SE(Ĉ). Test statistic for testing H 0 : C = g i=1 w iα i = 0: Ĉ t 0 = SE(Ĉ) t df of MSE Chapter 13B - 24

Multiple Comparisons in Balanced Block Designs All the multiple comparison procedures apply to all balanced block designs just change the degree of freedom from N g to the d.f. of MSE Critical Value to Method Family of Tests Keep FWER < α Fisher s LSD a single pairwise t α/2,df of MSE comparison Dunnett all comparisons d α (g 1, df of MSE) with a control Tukey-Kramer all pairwise q α (g, df of MSE)/ 2 comparisons Bonferroni all pairwise t α/(2r),df of MSE, comparisons where r = g(g 1) 2 Scheffè all contrasts (g 1)Fα,g 1,df of MSE Chapter 13B - 25

Combination of Factorial and Block Designs The treatments in any block designs can also have factorial structure. The SS and df for treatments can be broken down according like what we have done in Chapter 8-10. Example In a 4 4 Latin square design (no replicates), the g = 4 treatments has a 2 2 factorial structure. Source d.f. Row g 1 = 3 Column g 1 = 3 Treatment g 1 = 3 Error (g 2)(g 1) = 6 Total g 2 1 = 15 Source d.f. Row g 1 = 3 Column g 1 = 3 A a 1 = 1 B b 1 = 1 AB (a 1)(b 1) = 1 Error (g 2)(g 1) = 6 Total g 2 1 = 15 Chapter 13B - 26

Exercise 13.2 Grains or crystals adversely affect the sensory qualities of foods using dried fruit pulp. Treatment factors: A, drying temperature (three levels), B, acidity (ph) of pulp (two levels), and C, sugar content (two levels). Block: 2 batch of pulp, 12 observations in each Response: a measure of graininess This is a 3 2 2 design with 2 replicates, in different blocks, RCBD with 12 treatments and 2 blocks. Chapter 13B - 27

Source d.f. Block 2 1 = 1 Treatment 12 1 = 11 Error = 11 Total 23 Source d.f. Block 2 1 = 1 A 3 1 = 2 B 2 1 = 1 C 2 1 = 1 AB (3 1)(2 1) = 2 BC (2 1)(2 1) = 1 AC (3 1)(2 1) = 2 ABC (3 1)(2 1)(2 1) = 2 Error 11 Total 23 Chapter 13B - 28