Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #19 Analysis of Designs with Random Factor Levels.

Slides:



Advertisements
Similar presentations
Analysis of Variance (ANOVA)
Advertisements

A. The Basic Principle We consider the multivariate extension of multiple linear regression – modeling the relationship between m responses Y 1,…,Y m and.
Topic 32: Two-Way Mixed Effects Model. Outline Two-way mixed models Three-way mixed models.
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 15 Analysis of Data from Fractional Factorials and Other Unbalanced.
Factorial Models Random Effects Random Effects Gauge R&R studies (Repeatability and Reproducibility) have been an expanding area of application Gauge R&R.
1 Chapter 4 Experiments with Blocking Factors The Randomized Complete Block Design Nuisance factor: a design factor that probably has an effect.
Chapter 4 Randomized Blocks, Latin Squares, and Related Designs
Experimental design and analyses of experimental data Lesson 2 Fitting a model to data and estimating its parameters.
EPI 809/Spring Probability Distribution of Random Error.
Design of Experiments and Analysis of Variance
Statistical Analysis Professor Richard F. Gunst Department of Statistical Science Lecture 16 Analysis of Data from Unbalanced Experiments.
Design of Engineering Experiments - Experiments with Random Factors
Chapter 5 Introduction to Factorial Designs
HIERARCHICAL LINEAR MODELS USED WITH NESTED DESIGNS IN EDUCATION, PSYCHOLOGY USES RANDOM FACTORS EXPECTED MEAN SQUARE THEORY COMBINES INFORMATION ACROSS.
ANalysis Of VAriance (ANOVA) Comparing > 2 means Frequently applied to experimental data Why not do multiple t-tests? If you want to test H 0 : m 1 = m.
Experimental Design Terminology  An Experimental Unit is the entity on which measurement or an observation is made. For example, subjects are experimental.
1 Chapter 5 Introduction to Factorial Designs Basic Definitions and Principles Study the effects of two or more factors. Factorial designs Crossed:
Purpose to compare average response among levels of the factors Chapters 2-4 -predict future response at specific factor level -recommend best factor.
Incomplete Block Designs
Outline Single-factor ANOVA Two-factor ANOVA Three-factor ANOVA
1 Experimental Statistics - week 7 Chapter 15: Factorial Models (15.5) Chapter 17: Random Effects Models.
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
Chapter 13Design & Analysis of Experiments 8E 2012 Montgomery 1.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
1 Design of Engineering Experiments Part 10 – Nested and Split-Plot Designs Text reference, Chapter 14, Pg. 525 These are multifactor experiments that.
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
Analysis of Variance (Two Factors). Two Factor Analysis of Variance Main effect The effect of a single factor when any other factor is ignored. Example.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 6 Solving Normal Equations and Estimating Estimable Model Parameters.
7-1 The Strategy of Experimentation Every experiment involves a sequence of activities: 1.Conjecture – the original hypothesis that motivates the.
Chapter 10 Analysis of Variance.
GENERAL LINEAR MODELS Oneway ANOVA, GLM Univariate (n-way ANOVA, ANCOVA)
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 17 Block Designs.
6-1 Introduction To Empirical Models Based on the scatter diagram, it is probably reasonable to assume that the mean of the random variable Y is.
The Completely Randomized Design (§8.3)
DOX 6E Montgomery1 Design of Engineering Experiments Part 9 – Experiments with Random Factors Text reference, Chapter 13, Pg. 484 Previous chapters have.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 8 Analysis of Variance.
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
Topic 30: Random Effects. Outline One-way random effects model –Data –Model –Inference.
PSYC 3030 Review Session April 19, Housekeeping Exam: –April 26, 2004 (Monday) –RN 203 –Use pencil, bring calculator & eraser –Make use of your.
By: Corey T. Williams 03 May Situation Objective.
1 The Two-Factor Mixed Model Two factors, factorial experiment, factor A fixed, factor B random (Section 13-3, pg. 495) The model parameters are NID random.
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 15 Review.
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 18 Random Effects.
1 Experimental Statistics - week 9 Chapter 17: Models with Random Effects Chapter 18: Repeated Measures.
Correlated-Samples ANOVA The Univariate Approach.
1 Experimental Statistics Spring week 6 Chapter 15: Factorial Models (15.5)
Experimental Statistics - week 3
Topic 20: Single Factor Analysis of Variance. Outline Analysis of Variance –One set of treatments (i.e., single factor) Cell means model Factor effects.
7-2 Factorial Experiments A significant interaction mask the significance of main effects. Consequently, when interaction is present, the main effects.
The Mixed Effects Model - Introduction In many situations, one of the factors of interest will have its levels chosen because they are of specific interest.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 9 Review.
1 Experimental Statistics - week 13 Multiple Regression Miscellaneous Topics.
1 An example of a more complex design (a four level nested anova) 0 %, 20% and 40% of a tree’s roots were cut with the purpose to study the influence.
Experimental Statistics - week 9
ANOVA and Multiple Comparison Tests
1 Experimental Statistics - week 8 Chapter 17: Mixed Models Chapter 18: Repeated Measures.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #10 Testing the Statistical Significance of Factor Effects.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
Today: Feb 28 Reading Data from existing SAS dataset One-way ANOVA
Factorial Models Random Effects
Factorial Experiments
Comparing Three or More Means
Chapter 5 Introduction to Factorial Designs
Topic 31: Two-way Random Effects Models
Experimental Statistics - Week 4 (Lab)
Experimental Statistics - week 8
Presentation transcript:

Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #19 Analysis of Designs with Random Factor Levels

Fermentation Process Experiment MGH Ex 10.17

Fermentation Process Experiment Proc GLM data=Ferment; class batch process; model response = batch process; random batch / test; lsmeans process / stderr pdiff; run;

Fermentation Process Experiment The GLM Procedure Dependent Variable: Response Sum of Source DF Squares Mean Square F Value Pr > F Model Error Corrected Total R-Square Coeff Var Root MSE Response Mean Source DF Type I SS Mean Square F Value Pr > F Batch Process Source DF Type III SS Mean Square F Value Pr > F Batch Process

Fermentation Process Experiment Mason, Gunst, & Hess: Exercise The GLM Procedure Source Type III Expected Mean Square Batch Var(Error) + 4 Var(Batch) Process Var(Error) + Q(Process) The Random Statement Produces This Output

Fermentation Process Experiment Mason, Gunst, & Hess: Exercise The GLM Procedure Tests of Hypotheses for Mixed Model Analysis of Variance Dependent Variable: Response Source DF Type III SS Mean Square F Value Pr > F Batch Process Error: MS(Error) The Random Statement Produces This Output

Fermentation Process Experiment Mason, Gunst, & Hess: Exercise Least Squares Means Response Standard LSMEAN Process LSMEAN Error Pr > |t| Number F < F < F < F < Least Squares Means for effect Process Pr > |t| for H0: LSMean(i)=LSMean(j) Dependent Variable: Response i/j LSMEANS Standard Errors Only use the Fixed Effects Computing Formulas These are Incorrect (See Proc Mixed Results)

Estimation of Variance Components: Method of Moments Equate mean squares to their expected mean squares and solve Equate mean squares to their expected mean squares and solve Random Main Effects Model Method of Moments F Test: MS A / MS E

Fermentation Process Experiment Mason, Gunst, & Hess: Exercise The GLM Procedure Source Type III Expected Mean Square Batch Var(Error) + 4 Var(Batch) Process Var(Error) + Q(Process)

Estimation of Variance Components: Method of Moments Equate mean squares to their expected mean squares and solve Equate mean squares to their expected mean squares and solve Three-Factor Random Effects Model Method of Moments F Test: MS ABC / MS E

Estimation of Variance Components Three-Factor Random Effects Model F Test: MS AB / MS ABC

Estimation of Variance Components Three-Factor Random Effects Model F Test: No Exact Test

Estimation of Variance Components Confidence Intervals 

Estimation of Variance Components Confidence Intervals 

Estimation of Variance Components Confidence Intervals

Testing Variance Components Three-Factor Random Effects Model F Test: No Exact Test

Satterthwaite’s Approximate F Statistic Assumptions MS 1, MS 2,..., MS k are Pairwise Independent ANOVA Mean Squares

Satterthwaite’s Approximate F Statistic Approximation L ~  L    L 

Satterthwaite’s Approximate F Statistic Solution

Satterthwaite’s Approximate F Statistic Application Select to be Independent of L Regardless of Ho Under Ho

Satterthwaite’s Approximate F Statistic

Approximation #1 M 1 & F Can Be Negative M 1 & F Can Be Negative

Satterthwaite’s Approximate F Statistic Approximation #2 M 2 & F Are Positive M 2 & F Are Positive

Random Effects Testing Three-Factor Random Effects Model Source Mean SquareExpected Mean Square AMS A  e 2 + r  abc  + cr  ab  + br  ag  + bcr  a  ABMS AB  e 2 + r  abc  + cr  ab  ABCMS ABC  e + r  abc  ErrorMS E  e 2 Effects Not Necessarily Tested Against Error Test Main Effects Even if Interactions are Significant May Not be an Exact Test (Mixed Effects Models) Effects Not Necessarily Tested Against Error Test Main Effects Even if Interactions are Significant May Not be an Exact Test (Mixed Effects Models)

Random Effects Testing Three-Factor Random Effects Model Source Mean SquareExpected Mean Square AMS A  e 2 + r  abc  + cr  ab  + br  ag  + bcr  a  ABMS AB  e 2 + r  abc  + cr  ab  ABCMS ABC  e + r  abc  ErrorMS E  e 2 Proc GLM: Random... / Test Produces Satterthwaite Approximate Test Statistics Fixed Effects Standard Errors May be Incorrect Proc GLM: Random... / Test Produces Satterthwaite Approximate Test Statistics Fixed Effects Standard Errors May be Incorrect

Restricted Maximum Likelihood

Proc Mixed Proc Mixed data=Ferment Cl; class batch process; model response = process; random batch ; lsmeans process / adjust=tukey pdiff; run;

Fermentation Process Experiment Mason, Gunst, & Hess: Exercise The Mixed Procedure Covariance Parameter Estimates Cov Parm Estimate Alpha Lower Upper Batch Residual Balanced Design: Same as Method of Moments

Fermentation Process Experiment Type 3 Tests of Fixed Effects Num Den Effect DF DF F Value Pr > F Process Least Squares Means Standard Effect Process Estimate Error DF t Value Pr > |t| Process F <.0001 Process F <.0001 Process F <.0001 Process F <.0001 Correct Standard Errors

Fermentation Process Experiment Differences of Least Squares Means Standard Effect Process _Process Estimate Error DF t Value Pr > |t| Process F1 F Process F1 F Differences of Least Squares Means Effect Process _Process Adjustment Adj P Process F1 F2 Tukey-Kramer Process F1 F3 Tukey-Kramer Other Pairwise Comparisons on the Next Output Page Note: Standard Error of a Difference is Smaller than Random Effects Cancel in y i1 – y i2 (Pairwise Balance Needed)

Randomized Complete Block Designs Factorial Structure with Main Effect for Blocks Factorial Structure with Main Effect for Blocks Nothing New

Latin Square Designs Control Two Sources of Variability Restrictions Factor of Interest and Two blocking Factors Each at k Levels No Interactions Among the Experimental and Blocking Factors Experiment Size Latin Square : n = k 2 Complete Factorial : n = k 3 + r

Analysis of Latin Square Designs ith Row Block Effect Error Variation From All Sources Except Blocks & Factor Main Effects jth Column Block Effect kth Factor Level Effect Main Effects Analysis of Variance Model Main Effects Analysis of Variance Model

Balanced Incomplete Block Designs Used when blocks contain fewer experimental units than the number of unique factor-level combinations b blocks f factor-level combinations k < f experimental units per block No interactions with the design factor(s)

Asphalt-Pavement Rating Study Purpose Assess the Deterioration of Highway Pavement Response Rating: 0 = No pavement remaining 100 = excellent condition Design Factor 16 District Engineers (Random) Blocking Factor 16 Road Segments (Random)

Asphalt-Pavement Rating Study b = 16 Road Segments (Blocks) f = 16 Engineers (Factor-Level Combinations) k = 6 Engineers/Road Segment

Asphalt-Pavement Rating Study Design Engineer RoadSegmentRoadSegment

Analysis of Variance with Unbalanced Data Reduction in Error Sums of Squares R(M 1 | M 2 ) = SS E2 - SS E1 Error Sums of Squares Models 1 & 2 are Hierarchical Model 2 has a Subset of Model 1 Terms SS E2 SS E1 Testing Effects df = 2 - 1

Balanced Incomplete Block Design Model 1 Model 2 Model 3 Block Effect: R(M 1 | M 2 ) = SS E2 - SS E1 Factor Effect: R(M 1 | M 3 ) = SS E3 - SS E1 SAS PROC GLM Type I Sums of Squares Two Model Fits SAS PROC GLM Type I Sums of Squares Two Model Fits

Asphalt-Pavement Rating Study Sum of Source DF Squares Mean Square F Value Pr > F Model <.0001 Error Corrected Total R-Square Coeff Var Root MSE Rating Mean Source DF Type I SS Mean Square F Value Pr > F Road <.0001 Engineer Source DF Type III SS Mean Square F Value Pr > F Road <.0001 Engineer

Asphalt-Pavement Rating Study Sum of Source DF Squares Mean Square F Value Pr > F Model <.0001 Error Corrected Total R-Square Coeff Var Root MSE Rating Mean Source DF Type I SS Mean Square F Value Pr > F Engineer Road <.0001 Source DF Type III SS Mean Square F Value Pr > F Engineer Road <.000

Asphalt-Pavement Rating Study Asphalt-Paving Rating Study Mason, Gunst, & Hess: Table 10.4 The GLM Procedure Source Type III Expected Mean Square Engineer Var(Error) Var(Engineer) Road Var(Error) Var(Road)

Asphalt-Pavement Rating Study The Mixed Procedure Convergence criteria met Covariance Parameter Estimates Cov Parm Estimate Alpha Lower Upper Road Engineer Residual

Allergic Reaction Study: Randomized Complete Block Design MGH Table 10.6 Not Additive Not Additive

Balanced Incomplete Block Designs Multiple Comparisons Use Adjusted Factor-Level Averages Multiple Comparisons Use Adjusted Factor-Level Averages Average of r Block Averages Containing Factor-Level i MGH Exhibit 10.5