Part IV The General Linear Model Multiple Explanatory Variables Chapter 13.4 Fixed * Random Effects Randomized block.

Slides:



Advertisements
Similar presentations
Prepared by Lloyd R. Jaisingh
Advertisements

Lecture 2 ANALYSIS OF VARIANCE: AN INTRODUCTION
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 10 The Analysis of Variance.
© 2010 Pearson Prentice Hall. All rights reserved Multiple Comparisons for the Single Factor ANOVA.
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
Chapter 16 Inferential Statistics
1-Way Analysis of Variance
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 12 l Multiple Regression: Predicting One Factor from Several Others.
Other Analysis of Variance Designs Chapter 15. Chapter Topics Basic Experimental Design Concepts  Defining Experimental Design  Controlling Nuisance.
REMINDER 1) GLM Review on Friday 2) Exam II on Monday.
CHAPTER 24: Inference for Regression
Part III The General Linear Model Chapter 9 Regression.
Objectives (BPS chapter 24)
One-Way Between Subjects ANOVA. Overview Purpose How is the Variance Analyzed? Assumptions Effect Size.
ANOVA: ANalysis Of VAriance. In the general linear model x = μ + σ 2 (Age) + σ 2 (Genotype) + σ 2 (Measurement) + σ 2 (Condition) + σ 2 (ε) Each of the.
Analysis of Variance Chapter Introduction Analysis of variance compares two or more populations of interval data. Specifically, we are interested.
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.
Lecture 9: One Way ANOVA Between Subjects
DATA ANALYSIS III MKT525. Multiple Regression Simple regression:DV = a + bIV Multiple regression: DV = a + b 1 IV 1 + b 2 IV 2 + …b n IV n b i = weight.
Chapter 2 Simple Comparative Experiments
Chi-Square and F Distributions Chapter 11 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
T-tests and ANOVA Statistical analysis of group differences.
Choosing Statistical Procedures
Regression and Correlation Methods Judy Zhong Ph.D.
ANOVA Chapter 12.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
Chapter 14: Repeated-Measures Analysis of Variance.
Today: Quizz 8 Friday: GLM review Monday: Exam 2.
Part IV The General Linear Model. Multiple Explanatory Variables Chapter 13.3 Fixed *Random Effects Paired t-test.
BIOL 4605/7220 Ch 13.3 Paired t-test GPT Lectures Cailin Xu October 26, 2011.
+ Chapter 12: Inference for Regression Inference for Linear Regression.
Name: Angelica F. White WEMBA10. Teach students how to make sound decisions and recommendations that are based on reliable quantitative information During.
t(ea) for Two: Test between the Means of Different Groups When you want to know if there is a ‘difference’ between the two groups in the mean Use “t-test”.
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
Chapter 4 analysis of variance (ANOVA). Section 1 the basic idea and condition of application.
Part III The General Linear Model Chapter 10 GLM. ANOVA.
BIOL 4605/7220 GPT Lectures Cailin Xu October 12, 2011 CH 9.3 Regression.
Chapter 14 Inference for Regression AP Statistics 14.1 – Inference about the Model 14.2 – Predictions and Conditions.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.3 Using Multiple Regression to Make Inferences.
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Multiple Regression. Simple Regression in detail Y i = β o + β 1 x i + ε i Where Y => Dependent variable X => Independent variable β o => Model parameter.
C82MST Statistical Methods 2 - Lecture 1 1 Overview of Course Lecturers Dr Peter Bibby Prof Eamonn Ferguson Course Part I - Anova and related methods (Semester.
28. Multiple regression The Practice of Statistics in the Life Sciences Second Edition.
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
ANOVA II (Part 1) Class 15. Follow-up Points size of sample (n) and power of test. How are “inferential stats” inferential?
Biostatistics Regression and Correlation Methods Class #10 April 4, 2000.
Chapter 14 Introduction to Multiple Regression
Factorial Experiments
Two way ANOVA with replication
CHAPTER 13 Design and Analysis of Single-Factor Experiments:
Section 11.1 Day 2.
i) Two way ANOVA without replication
Comparing Three or More Means
Chapter 2 Simple Comparative Experiments
Two way ANOVA with replication
Chapter 11 Simple Regression
12 Inferential Analysis.
CHAPTER 29: Multiple Regression*
Other Analysis of Variance Designs
Multiple Regression Models
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
12 Inferential Analysis.
Definitional Formulae
Experiments We wish to conduct an experiment to see the effect of alcohol (explanatory variable) on reaction time (response variable).
Chapter 14 Inference for Regression
A Bestiary of ANOVA tables
Design of Experiments An Introduction.
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Part IV The General Linear Model Multiple Explanatory Variables Chapter 13.4 Fixed * Random Effects Randomized block

Statistical control The effect of one variable (random: subject in last lecture) are removed to arrive at a better test for the variable of interest (fixed: drug in last lecture) It is used when manipulative control is not possible Field Not possible at large scales Expensive Can generate artifacts  study with well designed statistical control can be more informative

Randomized block design "Block what you can, randomize what you cannot.“ Blocking to remove effects of the most important nuisance variables Randomization to reduce contaminating effects of remaining nuisance variables Within each block elements must be homogenous with respect to response variable Heterogeneity among blocks Order blocks perpendicular to gradient of extraneous variable Treatments are randomized within each block

Randomized block design Example from Netter & Wasserman (1974) Applied Linear Statistical Models Response: sales volume Explanatory: level of newspaper advertising Size of city correlated with response block according to population size perpendicular to gradient=from large to small randomize level of advertising within each block

Randomized block design Some blocking criteria: Characteristics associated with the unit – For persons: gender, age, etc – For geographic areas: population size, average income, etc Characteristics associated with the experimental setting observer, time of processing, machine, tank, batch, measuring instrument, etc

Data from Sokal & Rohlf Dry weights of 3 genotypes (wild, hetrozygote mutant, homozygote mutnt) of flour beetle Tribolium in 4 experiments Does weight vary among genotypes? GLM | Randomized block design BlocksGtypeWt

1. Construct Model Response variable: M = beetle mass Explanatory variables: 1. Genotype Fixed effect 2. Experiment Random effect Experiments were laborious and carried out several months apart Each experiment is a block

1. Construct Model Verbal: Does weight vary among genotypes, after controlling for differences among genotypes? Graphical:

1. Construct Model Formal: Can we have an interaction term? Same situation as last lecture. If we were to include an interaction term then df res =0  MS res = SS res / df res =  X

1. Construct Model Formal: X

2. Execute analysis lm1 <- lm(M~G+B, data=trib) BlocksGtypeWt

2. Execute analysis GtypeBlock Effect FitsRes BlocksGtypeWtβ0β0 βGβG βBβB β 0 + β B + β G

3. Evaluate model a. Straight line □ Straight line model ok? b. Need to revise model? □ Errors homogeneous? c. Assumptions for computing p-values □ Errors normal? □ Errors independent?

a. Straight line □ Straight line model ok? b. Need to revise model? □ Errors homogeneous? c. Assumptions for computing p-values □ Errors normal? □ Errors independent? 3. Evaluate model NA ?

3. Evaluate model a. Straight line □ Straight line model ok? b. Need to revise model? □ Errors homogeneous? c. Assumptions for computing p-values □ Errors normal? □ Errors independent? NA ? X

3. Evaluate model a. Straight line □ Straight line model ok? b. Need to revise model? □ Errors homogeneous? c. Assumptions for computing p-values □ Errors normal? □ Errors independent? NA X ?

4.State the population and whether the sample is representative. Genotype  fixed effects We will infer only to those genotypes Experiment, i.e. time and other condition  random effects All possible measurements that could have been made on Tribolium, given the mode of collection

5.Decide on mode of inference. Is hypothesis testing appropriate? 6.State H A / H o pair, test statistic, distribution, tolerance for Type I error. Interaction Term: Removed by experimental design (genotypes weighed in random order) Block Term experiment: We are interested in this effect. Only included in model to remove the variance from the error term

6.State H A / H o pair, test statistic, distribution, tolerance for Type I error. Genotype Term: H A : E(M I ) ≠ E(M II ) ≠ E(M III )H A :Var(β G ) > 0 H 0 : E(M I ) = E(M II ) = E(M III ) H 0 :Var(β G ) = 0 Test Statistic Distribution of test statitstic Tolerance for Type I error

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res______ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total

7. ANOVA n = 12 SourcedfSSMSFp Blocks Genotype Res__6__ Total What would it look like had we not controlled for experiment? SourcedfSSMSFp Genotype Res__9__ Total STATISTICAL CONTROL

8. Decide whether to recompute p-value Residuals homogenous not independent deviated slightly from normality n=12 p=0.027  needs to change 2-fold to change decision Randomization ( runs) p ran = change in p: 0.027/0.186 = 1.45

9.Declare decision about terms Only the fixed term was tested p=0.0186< α =0.05 Reject H 0  There is significant variation in mean dry weight among genotypes

10.Report and interpret parameters of biological interest Means per genotype with 95% CI, not controlled for among experiments variation Genotype III Homozygote mutant Genotype I Heterozygote mutant Genotype II Wild

10.Report and interpret parameters of biological interest Means per genotype with 95% CI, not controlled for among experiments variation library(effects) effect("G", lm2,se=TRUE, confidence.level=.95) Genotype III Homozygote mutant Genotype I Heterozygote mutant Genotype II Wild

Genotype III Homozygote mutant 10.Report and interpret parameters of biological interest Means per genotype with 95% CI, controlled for among experiments variation Genotype I Heterozygote mutant Genotype II Wild

10.Report and interpret parameters of biological interest Means per genotype with 95% CI, controlled for among experiments variation effect("G", lm1,se=TRUE, confidence.level=.95) Genotype III Homozygote mutant Genotype I Heterozygote mutant Genotype II Wild