Topic 30: Random Effects. Outline One-way random effects model –Data –Model –Inference.

Slides:



Advertisements
Similar presentations
Topic 12: Multiple Linear Regression
Advertisements

Topic 32: Two-Way Mixed Effects Model. Outline Two-way mixed models Three-way mixed models.
Hypothesis Testing Steps in Hypothesis Testing:
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #19 Analysis of Designs with Random Factor Levels.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 12 l Multiple Regression: Predicting One Factor from Several Others.
Multifactor Experiments November 26, 2013 Gui Citovsky, Julie Heymann, Jessica Sopp, Jin Lee, Qi Fan, Hyunhwan Lee, Jinzhu Yu, Lenny Horowitz, Shuvro Biswas.
STA305 week 31 Assessing Model Adequacy A number of assumptions were made about the model, and these need to be verified in order to use the model for.
Econ 140 Lecture 81 Classical Regression II Lecture 8.
Topic 3: Simple Linear Regression. Outline Simple linear regression model –Model parameters –Distribution of error terms Estimation of regression parameters.
Classical Regression III
Multiple regression analysis
Copyright ©2011 Brooks/Cole, Cengage Learning Analysis of Variance Chapter 16 1.
Every achievement originates from the seed of determination. 1Random Effect.
Biostatistics-Lecture 9 Experimental designs Ruibin Xi Peking University School of Mathematical Sciences.
Regression Analysis (2)
One-Factor Experiments Andy Wang CIS 5930 Computer Systems Performance Analysis.
Topic 28: Unequal Replication in Two-Way ANOVA. Outline Two-way ANOVA with unequal numbers of observations in the cells –Data and model –Regression approach.
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.
1 Experimental Statistics - week 6 Chapter 15: Randomized Complete Block Design (15.3) Factorial Models (15.5)
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
Inferences in Regression and Correlation Analysis Ayona Chatterjee Spring 2008 Math 4803/5803.
G Lecture 5 Example fixed Repeated measures as clustered data
Topic 7: Analysis of Variance. Outline Partitioning sums of squares Breakdown degrees of freedom Expected mean squares (EMS) F test ANOVA table General.
Lecture 4 SIMPLE LINEAR REGRESSION.
Topic 14: Inference in Multiple Regression. Outline Review multiple linear regression Inference of regression coefficients –Application to book example.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
STA305 week21 The One-Factor Model Statistical model is used to describe data. It is an equation that shows the dependence of the response variable upon.
Testing Multiple Means and the Analysis of Variance (§8.1, 8.2, 8.6) Situations where comparing more than two means is important. The approach to testing.
Randomized Block Design (Kirk, chapter 7) BUSI 6480 Lecture 6.
5-5 Inference on the Ratio of Variances of Two Normal Populations The F Distribution We wish to test the hypotheses: The development of a test procedure.
Topic 17: Interaction Models. Interaction Models With several explanatory variables, we need to consider the possibility that the effect of one variable.
STA305 week 51 Two-Factor Fixed Effects Model The model usually used for this design includes effects for both factors A and B. In addition, it includes.
The Completely Randomized Design (§8.3)
Topic 6: Estimation and Prediction of Y h. Outline Estimation and inference of E(Y h ) Prediction of a new observation Construction of a confidence band.
Analisa Regresi Week 7 The Multiple Linear Regression Model
Topic 23: Diagnostics and Remedies. Outline Diagnostics –residual checks ANOVA remedial measures.
1 Always be mindful of the kindness and not the faults of others.
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
Topic 25: Inference for Two-Way ANOVA. Outline Two-way ANOVA –Data, models, parameter estimates ANOVA table, EMS Analytical strategies Regression approach.
Topic 26: Analysis of Covariance. Outline One-way analysis of covariance –Data –Model –Inference –Diagnostics and rememdies Multifactor analysis of covariance.
Chapter Seventeen. Figure 17.1 Relationship of Hypothesis Testing Related to Differences to the Previous Chapter and the Marketing Research Process Focus.
ETM U 1 Analysis of Variance (ANOVA) Suppose we want to compare more than two means? For example, suppose a manufacturer of paper used for grocery.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.3 Two-Way ANOVA.
Chapter Outline Goodness of Fit test Test of Independence.
1 Experimental Statistics - week 9 Chapter 17: Models with Random Effects Chapter 18: Repeated Measures.
Topic 24: Two-Way ANOVA. Outline Two-way ANOVA –Data –Cell means model –Parameter estimates –Factor effects model.
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.
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
Experimental Statistics - week 9
Topic 29: Three-Way ANOVA. Outline Three-way ANOVA –Data –Model –Inference.
Interview Example: nknw964.sas Y = rating of a job applicant Factor A represents 5 different personnel officers (interviewers) n = 4.
Topic 27: Strategies of Analysis. Outline Strategy for analysis of two-way studies –Interaction is not significant –Interaction is significant What if.
Topic 22: Inference. Outline Review One-way ANOVA Inference for means Differences in cell means Contrasts.
Significance Tests for Regression Analysis. A. Testing the Significance of Regression Models The first important significance test is for the regression.
Topic 21: ANOVA and Linear Regression. Outline Review cell means and factor effects models Relationship between factor effects constraint and explanatory.
1 Experimental Statistics - week 8 Chapter 17: Mixed Models Chapter 18: Repeated Measures.
F73DA2 INTRODUCTORY DATA ANALYSIS ANALYSIS OF VARIANCE.
The “Big Picture” (from Heath 1995). Simple Linear Regression.
INTRODUCTION TO MULTIPLE REGRESSION MULTIPLE REGRESSION MODEL 11.2 MULTIPLE COEFFICIENT OF DETERMINATION 11.3 MODEL ASSUMPTIONS 11.4 TEST OF SIGNIFICANCE.
Factorial Experiments
Topic 31: Two-way Random Effects Models
Three way ANOVA If there was One way then and Two way, then you knew that there had to be………
Random and Mixed Effects ANOVA
CHAPTER 29: Multiple Regression*
Random and Mixed Effects ANOVA
Experimental Statistics - week 8
Presentation transcript:

Topic 30: Random Effects

Outline One-way random effects model –Data –Model –Inference

Data for one-way random effects model Y, the response variable Factor with levels i = 1 to r Y ij is the j th observation in cell i, j = 1 to n i Almost identical model structure to earlier one-way ANOVA. Difference in level of inference

Level of Inference In one-way ANOVA, interest was in comparing the factor level means In random effects scenario, interest is in the pop of factor level means, not just the means of the r study levels Need to make assumptions about population distribution Will take “random” draw from pop of factor levels for use in study

KNNL Example KNNL p 1036 Y is the rating of a job applicant Factor A represents five different personnel interviewers (officers), r=5 n=4 different applicants were interviewed by each officer The interviewers were selected at random and the applicants were randomly assigned to interviewers

Read and check the data data a1; infile 'c:\...\CH25TA01.DAT'; input rating officer; proc print data=a1; run;

The data Obs rating officer

The data Obs rating officer

Plot the data title1 'Plot of the data'; symbol1 v=circle i=none c=black; proc gplot data=a1; plot rating*officer/frame; run;

Find and plot the means proc means data=a1; output out=a2 mean=avrate; var rating; by officer; title1 'Plot of the means'; symbol1 v=circle i=join c=black; proc gplot data=a2; plot avrate*officer/frame; run;

Random effects model Y ij = μ i + ε ij –the μ i are iid N(μ, σ μ 2 ) –the ε ij are iid N(0, σ 2 ) – μ i and ε ij are independent Y ij ~ N(μ, σ μ 2 + σ 2 ) Two sources of variation Observations with the same i are not independent, covariance is σ μ 2 Key difference

Random effects model This model is also called –Model II ANOVA –A variance components model The components of variance are σ μ 2 and σ 2 The models that we previously studied are called fixed effects models

Random factor effects model Y ij = μ +  i + ε ij  i ~ N(0, σ μ 2 ) ***** ε ij ~ N(0, σ 2 ) Y ij ~ N(μ, σ μ 2 + σ 2 )

Parameters There are three parameters in these models –μ –σ μ 2 –σ 2 The cell means (or factor levels) are random variables, not parameters Inference focuses on these variances

Primary Hypothesis Want to know if H 0 : σ μ 2 = 0 This implies all  i in model are equal but also all  i not selected for analysis are also equal. Thus scope is broader than fixed effects case Need the factor levels of the study to be “representative” of the population

Alternative Hypothesis We are sometimes interested in estimating σ μ 2 /( σ μ 2 + σ 2 ) This is the same as σ μ 2 / σ Y 2 In some applications it is called the intraclass correlation coefficient It is the correlation between two observations with the same I Also percent of total variation of Y

ANOVA table The terms and layout of the anova table are the same as what we used for the fixed effects model The expected mean squares (EMS) are different because of the additional random effects but F test statistics are the same Be wary that hypotheses being tested are different

EMS and parameter estimates E(MSA) = σ 2 + n σ μ 2 E(MSE) = σ 2 We use MSE to estimate σ 2 Can use (MSA – MSE)/n to estimate σ μ 2 Question: Why might it we want an alternative estimate for σ μ 2 ?

Main Hypotheses H 0 : σ μ 2 = 0 H 1 : σ μ 2 ≠ 0 Test statistic is F = MSA/MSE with r-1 and r(n-1) degrees of freedom, reject when F is large, report the P-value

Run proc glm proc glm data=a1; class officer; model rating=officer; random officer/test; run;

Model and error output Source DF MS F P Model Error Total 19

Random statement output Source Type III Expected MS officer Var(Error) + 4 Var(officer)

Proc varcomp proc varcomp data=a1; class officer; model rating=officer; run;

Output MIVQUE(0) Estimates Variance Component rating Var(officer) Var(Error) Other methods are available for estimation, minque is the default

Proc mixed proc mixed data=a1 cl; class officer; model rating=; random officer/vcorr; run;

Output Covariance Parameter Estimates Cov Parm Est Lower Upper officer Residual /( )=.5232

Output from vcorr Row Col1 Col2 Col3 Col

Other topics Estimate and CI for μ, p1038 –Standard error involves a combination of two variances –Use MSA instead of MSE → r-1 df Estimate and CI for σ μ 2 /( σ μ 2 + σ 2 ), p1040 CIs for σ μ 2 and σ 2, p –Available using Proc Mixed

Applications In the KNNL example we would like σ μ 2 /( σ μ 2 + σ 2 ) to be small, indicating that the variance due to interviewer is small relative to the variance due to applicants In many other examples we would like this quantity to be large, –e.g., Are partners more likely to be similar in sociability?

Last slide Start reading KNNL Chapter 25 We used program topic30.sas to generate the output for today