Section 7.3 Nested Design for Models with Fixed Effects, Mixed Effects and Random Effects

Similar documents
Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs

MAT3378 ANOVA Summary

STAT Final Practice Problems

Analysis of Variance and Design of Experiments-I

Nested Designs & Random Effects

Outline Topic 21 - Two Factor ANOVA

Two-Way Factorial Designs

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

STAT22200 Spring 2014 Chapter 8A

G. Nested Designs. 1 Introduction. 2 Two-Way Nested Designs (Balanced Cases) 1.1 Definition (Nested Factors) 1.2 Notation. 1.3 Example. 2.

Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, E(X i X) 2 = (µ i µ) 2 + n 1 n σ2

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

Factorial designs. Experiments

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

Statistics For Economics & Business

ANOVA Randomized Block Design

iron retention (log) high Fe2+ medium Fe2+ high Fe3+ medium Fe3+ low Fe2+ low Fe3+ 2 Two-way ANOVA

Formal Statement of Simple Linear Regression Model

Stat 579: Generalized Linear Models and Extensions

Fractional Factorial Designs

If we have many sets of populations, we may compare the means of populations in each set with one experiment.

Design & Analysis of Experiments 7E 2009 Montgomery

Two-Way Analysis of Variance - no interaction

Factorial ANOVA. Psychology 3256

Reference: Chapter 14 of Montgomery (8e)

Notes for Week 13 Analysis of Variance (ANOVA) continued WEEK 13 page 1

3. Design Experiments and Variance Analysis

STAT 705 Chapter 19: Two-way ANOVA

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

Solution to Final Exam

Multiple Sample Numerical Data

These are multifactor experiments that have

Chapter 13 Experiments with Random Factors Solutions

Chapter 8: Hypothesis Testing Lecture 9: Likelihood ratio tests

Two-Factor Full Factorial Design with Replications

Stat 217 Final Exam. Name: May 1, 2002

Graduate Lectures and Problems in Quality Control and Engineering Statistics: Theory and Methods

Factorial and Unbalanced Analysis of Variance

Design of Engineering Experiments Chapter 5 Introduction to Factorials

BIOSTATISTICAL METHODS

STAT 705 Chapter 19: Two-way ANOVA

Econ 3790: Business and Economic Statistics. Instructor: Yogesh Uppal

Nested 2-Way ANOVA as Linear Models - Unbalanced Example

Homework 3 - Solution

Chapter 15: Analysis of Variance

Stat 6640 Solution to Midterm #2

Inference for Regression Simple Linear Regression

Statistics 210 Part 3 Statistical Methods Hal S. Stern Department of Statistics University of California, Irvine

Lec 5: Factorial Experiment

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

Chapter 11 - Lecture 1 Single Factor ANOVA

CS 147: Computer Systems Performance Analysis

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

Analysis of Variance. Read Chapter 14 and Sections to review one-way ANOVA.

Statistics for Managers Using Microsoft Excel Chapter 10 ANOVA and Other C-Sample Tests With Numerical Data

Statistics 512: Applied Linear Models. Topic 9

The Random Effects Model Introduction

Analysis of Variance

Lecture 11: Nested and Split-Plot Designs

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

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

Unbalanced Designs Mechanics. Estimate of σ 2 becomes weighted average of treatment combination sample variances.

n i n T Note: You can use the fact that t(.975; 10) = 2.228, t(.95; 10) = 1.813, t(.975; 12) = 2.179, t(.95; 12) =

The factors in higher-way ANOVAs can again be considered fixed or random, depending on the context of the study. For each factor:

Definitions of terms and examples. Experimental Design. Sampling versus experiments. For each experimental unit, measures of the variables of

STAT Chapter 10: Analysis of Variance

Two or more categorical predictors. 2.1 Two fixed effects

Multiple comparisons - subsequent inferences for two-way ANOVA

STAT 705 Chapter 16: One-way ANOVA

Diagnostics and Remedial Measures

Two-Way ANOVA (Two-Factor CRD)

One-Way Analysis of Variance (ANOVA)

RCB - Example. STA305 week 10 1

Stat 511 HW#10 Spring 2003 (corrected)

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

STAT 430 (Fall 2017): Tutorial 8

Final Review. Yang Feng. Yang Feng (Columbia University) Final Review 1 / 58

AN IMPROVEMENT TO THE ALIGNED RANK STATISTIC

Lecture 22 Mixed Effects Models III Nested designs

with the usual assumptions about the error term. The two values of X 1 X 2 0 1

Chapter 12. Analysis of variance

6. Multiple Linear Regression

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

Lecture 1 Linear Regression with One Predictor Variable.p2

STAT 506: Randomized complete block designs

3. Diagnostics and Remedial Measures

Chapter 10. Design of Experiments and Analysis of Variance

TWO OR MORE RANDOM EFFECTS. The two-way complete model for two random effects:

Simple Linear Regression

Concordia University (5+5)Q 1.

20. REML Estimation of Variance Components. Copyright c 2018 (Iowa State University) 20. Statistics / 36

Analysis of Variance (ANOVA)

Statistics 512: Applied Linear Models. Topic 7

1-Way Fixed Effects ANOVA

Confidence Intervals, Testing and ANOVA Summary

Remedial Measures, Brown-Forsythe test, F test

Summary of Chapter 7 (Sections ) and Chapter 8 (Section 8.1)

Lectures on Simple Linear Regression Stat 431, Summer 2012

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

Lecture 18 MA Applied Statistics II D 2004

Transcription:

Section 7.3 Nested Design for Models with Fixed Effects, Mixed Effects and Random Effects 1

TABLE 25.5 Mean Square MSA MSB Expected Mean Squares for Balanced Two-Factor ANOVA Models. Fixed AN OVA Model Random ANOVA Model Mixed ANOVA Model df (A and B fixed) (A and B random) (A fixed, B random) LIX2 2 LIXl 2 0-0- 0-1 a 2 +nb--; a 2 + nba; + na;fj a + nb-- 1 + na ap b-1 L{3? 2 J a +no b _ 1 a 2 + noaj + na;fj a 2 + noaj. MSAB (0-1)(b-1) L L(IX{3)l i a 2 +n (0-1)(b-1) a 2 + na;fj a 2 + na;fj MSE (n-1)ob a 2 a 2 a 2

Example 1 A large manufacturing company operates three regional training schools for mechanics, one in each of its operating districts. The schools have two instructors each, who teach classes of about 15 mechanics in three-week sessions. The company was concerned about the effect of school (factor A) and instructor (factor B) on the learning achieved. To investigate these effects, classes in each district were formed in the usual way and then randomly assigned to one of the two instructorf> in the school. This was done for two sessions, and at the end of each session a suitable summary measure of learning for the class was obtained. The results are presented in Table 26.1. The layout of Table 26.1 appears identical to an ordinary two-factor investigation, with two observations per cell (see, e.g., Table 19.7). In fact, however, the study is not an ordinary two-factor study. The reason is that the instructors in the Atlanta school did not also teach in the other two schools, and similarly for the other instructors. Thus, six different instructors were involved. An ordinary two-factor investigation with six different instructors would have consisted of 18 treatments, as shown in Figure 26.1 a. In the training school example, however, only six treatments were included, as shown in Figure 26.1 b, where

.'BLE Ii 26.1 : ii tple Data ":'Nested ~., " o:factor ludy "iliding SChool ~ple(class 'lelll1lidg scores, coded).,:::-.~. ' Factor A (school) Atlanta Chicago "\ r":"~ San fran,ci~co Average Average Average ~actor B' (instructor) ( ',' 1 2 2~ 14 29 11 Y,1' = 27 Y,2. = 12.5' 11 22 ~,.18 Y21' = 8.5 Y22. =20 17 5, 20 2 )131' = 18;5 ~2.=3;5 Is Average )12" =14.25 Yj.. = 11.00 AVerage Y." =,15 SEIGURE 26.1 :~inustration \6t:Crossed '~1II1d Nested.---;/,, FactorsiTraining ::.<School ; i!:xample..~,- School (factor A) Atlanta Chicago San Francisco (a) Crossed Factors Instructor (factor 8) 1 2 3 4 5 6 (b) Nested Factors School (factor A) Instructor (factor 8) 2 3 4 5 6 Atlanta Chicago San Francisco the crossed-out cells represent treatments not studied. Figure 26.2 contains an alternative graphic representation of the nested design for the training school example, including the two replications ofthe study.

FIGURE 26.2 School (i) Graphic Representation of Two-Factor Nested Design-Training School Example. 12 3 (i = 1) (i = 2) (i = 3) Instructor (j) 1 2 3 4 5 (j = 1) (j = 2) (j = 1) (j = 2) (j = 1) 6 (j = 2) Class (k) 1 2 3 4 5 6 7 8 9 10 11 12 (k = 1) (k = 2) (k = 1) (k = 2) (k = 1) (k = 2) (k = 1) (k = 2) (k = 1) (k = 2) (k = 1) (k= 2) "- '-'

Nested Design Model Let Y;jk denote the response for the kth trial when factor A is at the ith level and factor B is at the jth level. We assume that there are n replications for each factor level combination, i.e., k = L..., /7, and that i = I,..., a and j = I,..., h. Such a study is said to be balanced because the same number of factor B levels is nested within each factor A level and the number of replications is the same throughout. When both factors A and B have fixed effects, an appropriate nested design model is: where: fj-.. is a constant a; are constants subject to the restriction La; = 0 {3j(i1 are constants subject to the restrictions Lj (3j(i) = 0 for all i Cijk are independent N (0. a 2 ) i= I,...,a;j= I,...,b;k= 1,,,.. /7 (26.7) The expected value and variance of observation Y ijk for nested design model (26.7) with fixed factor effects are: E {Yi.id = fj-.. + ai + (3j(i) a 2 {Y;jd = a 2 (26.8a) (26.8b) Thus, all observations have a constant variance. Further, the observations Y ijk are independent and norl11all y distributed for this model.

JSandom Factor Effects If both factors A and B have random factor levels, nested design model (26.7) is modified with ai, fjj(i), and Cijk being independent normal random variables with expectations 0 and variances a~, ai, and 0'2, respectively. Thus, it is assumed that all fjj(i) have the same variance al- The assumption that all fjj(i) have the same variance also is made if only factor B is random. It is important to check whether this assumption is appropriate, since it may well be that the mean responses Mil, Mi2,..., in one factor A level (plant, school, city, etc.) differ in variability from those in other factor A levels (other plants, schools, cities, etc.). Tests for equality of variances are discussed in Section 18.2. 26.3 Analysis of Variance for Two-Factor Nested Designs ;Fitting of Model The least squares and maximum likelihood estimators of the parameters in nested design model (26.7) are obtained in the usual fashion. Employing our customary notation for sample data in factorial studies, the estimators are: Parameter Estimator M fl.. = Y... D!; a; = Y;.. - Y... {3j(i) ~j(i) = Y;j. - Y;.. (26.9a) (26.9b) (26.9c) The fitted values therefore are: and the residuals are: Yjjk = Y.. + (li. -'Y.. ) + (f;j. - li.. ) = lij (26.10) (26.11)

Sums of Squares The analysis of variance for nested design model (26.7) is obtained by decom ' tal d.. v to eviauon -Y. 'Ii II " POSIng the' 1 ijk -... as 0 ows. Yijk - Y... = Y;.. - P... + Y;j. - Y;.. + Y ijk - Y;.. '--v--' '--v---" '--v--' ~ Total deviation A main cttccl Specific B effect when A al ilh level Residual (26.12) When we square (26.12) and slim over all cases, all cross-product terms drop out and w obtain: e where: SSTO = SSA + SSB(A) + SSE SSTO = LLL(Y;jk - y'.. )2 j SSA = bn " LUi -.. - Y...) - 2 (26.13) (26.13a) (26.13b) SSB(A) = n L L(Y;]' - Y;.. )2 j (26.13c) j k j (26.13d)

TABLE 26.3 ANOVA Table for Nested Balanced Two-Factor Fixed Effects Model (26.7) (B nested within A). Source of Variation 55 elf M5 ~ Factor A SSA = bnl(y;-- - y' )2 0-1 MSA 2 La? a +bn~_ 0-1 Factor B (within A) SSB(A) = nll(y;j- - Y;-Y 0(b-1) MSB(A) LL{32.\ 2 j(b~' Error Total SSE = LLL(Yjjk - Y;iY ssm = LLL (Yijk - y' )2 ob(n-1) obn-1 MSE a + n----:-:-------.' a(b-l~ a 2 FIGURE 26.3 Dot Plots of Class Learning Scores Training School Example. San Francisco (i = 3) o 0 o ~ Chicago (i = 2) u Vl o o o Instructor j = 1.. Instructor i = 2 Atlanta (i = 1) o 0 o 10 20 30 Learning Score

!j3le 26.4 ~OVAfor ~'(,.;Factor ~;ted,es :;~gn, aiding "diool ~ple. ~..:- Source of Variation Schools (A) Instructors, within schools [B(A)] Error (E) Total Source of Variation Instructors, Atlanta Instructors, Chicago Instructors, Scm Francisco Total (a) ANOVA Table SS SSA = 156.5 SSB(A),= 567.5 SSE= 42.0 SSTO= 766.0 (b) Decomposition of SSB(A) 210.25 132.25 225.00 567.5 df df MS 2 78.25 3 189.17 6 7.00 11 MSB(AJ) 1 210.25 1 132.25 1 225.00 3

rable 26.5 ;j;;gpected Mean isguares for Nested Balanced lwo- Factor IJ)esigns with l{audom FacfOC Effects (Bnested mtbina). Mean Square MSA MSB(A) MSE Test for Factor A Factor B(A) A Fixed, B Random 2:)x? (52 +bn--' + na 2 0-1, fj (52 + na i fj A Fixed, B Random MSA/MSB(A) MSB(A)/MSE Expected Mean Square Appropriate Test Statistic A Random, B Random A Random, B Random MSA/MSB(A) MSB(A)/MSE

Estimation of Factor Level Means Mi. When factor A (fixed effects factor) has significant main effects, there is frequent interest in estimating the factor level means!li.. The estimated factor level mean f;.. is an unbiased estimator of!li.. As usual for a fixed effects factor, the estimated variance of f;.. is based on the mean square in the denominator of the statistic used for testing for factor A main effects, and on the number of cases on which f;.. is based. Confidence limits for p+ are of the customary form: where: f;.. ± t(l - a12; df)s{f;.. } (26.21) 2 - MSE s {Yi.. } = -- df = ab(n - 1) A and B fixed bn 2 - MSB(A) s {l/.. } = df = a(b - 1) A fixed, B random bn (26.21 a) (26.21 b)

Estimation of Treatment Means {tij Confidence limits for Ji,ij are set up in the usual fashion using the t distribution when both factors A and B have fixed effects: where: 1;;. ± tll - a/2; (/1 - l)abls{y;j.} (26.23) (26.23a) To make a comparison within any factor A level, we estimate the contrast L = '" C.11.. " _ 6 jrlj' where Lei = 0, with the estimator L = LcjY ij. and employ the confidence limits: where: i ± t[l - a/2; (11 - l)ab]s{i} (26.24) 7 ~ MSE s-{l} = -- C~ L 7 n J (26.24a)

~ ~imation of Overall Mean M.., Sometimes there is interest in estimating the overall mean Ji,, For the training school " example, Ji, is the overall mean learning score for all training schools and all instructors in these schools. The point estimator is Y.... The confidence limits are constructed utilizing,1 the t distribution as follows: where: Y... ± t(l - a12; df)s{y... } (26.25)..,. MSE s2{y... } =-- abn df = ab(n -1) A and B fixed (26.25a)