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.

Slides:



Advertisements
Similar presentations
Analysis of Variance (ANOVA)
Advertisements

Topic 32: Two-Way Mixed Effects Model. Outline Two-way mixed models Three-way mixed models.
Analysis of Variance (ANOVA) ANOVA methods are widely used for comparing 2 or more population means from populations that are approximately normal in distribution.
Latin Square Designs (§15.4)
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #19 Analysis of Designs with Random Factor Levels.
Experimental design and analyses of experimental data Lesson 2 Fitting a model to data and estimating its parameters.
Hierarchical (nested) ANOVA. In some two-factor experiments the level of one factor, say B, is not “cross” or “cross classified” with the other factor,
Analysis of Variance Compares means to determine if the population distributions are not similar Uses means and confidence intervals much like a t-test.
Statistical Analysis Professor Richard F. Gunst Department of Statistical Science Lecture 16 Analysis of Data from Unbalanced Experiments.
Chapter 9: The Analysis of Variance (ANOVA)
ANOVA notes NR 245 Austin Troy
Lecture 10 PY 427 Statistics 1 Fall 2006 Kin Ching Kong, Ph.D
1 Multifactor ANOVA. 2 What We Will Learn Two-factor ANOVA K ij =1 Two-factor ANOVA K ij =1 –Interaction –Tukey’s with multiple comparisons –Concept of.
Analysis of Variance: ANOVA. Group 1: control group/ no ind. Var. Group 2: low level of the ind. Var. Group 3: high level of the ind var.
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.
Purpose to compare average response among levels of the factors Chapters 2-4 -predict future response at specific factor level -recommend best factor.
1 Experimental design and statistical analyses of data Lesson 5: Mixed models Nested anovas Split-plot designs.
Analysis of variance (3). Normality Check Frequency histogram (Skewness & Kurtosis) Probability plot, K-S test Normality Check Frequency histogram (Skewness.
Outline Single-factor ANOVA Two-factor ANOVA Three-factor ANOVA
ANOVA: Analysis of Variance Xuhua Xia
1 Experimental Statistics - week 7 Chapter 15: Factorial Models (15.5) Chapter 17: Random Effects Models.
1 Experimental Statistics - week 6 Chapter 15: Randomized Complete Block Design (15.3) Factorial Models (15.5)
Multiple Comparisons.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
Analysis of Covariance ANOVA is a class of statistics developed to evaluate controlled experiments. Experimental control, random selection of subjects,
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
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.
Regression For the purposes of this class: –Does Y depend on X? –Does a change in X cause a change in Y? –Can Y be predicted from X? Y= mX + b Predicted.
7-1 The Strategy of Experimentation Every experiment involves a sequence of activities: 1.Conjecture – the original hypothesis that motivates the.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Experimental Design and Analysis of Variance Chapter 10.
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.
Discussion 3 1/20/2014. Outline How to fill out the table in the appendix in HW3 What does the Model statement do in SAS Proc GLM ( please download lab.
The Completely Randomized Design (§8.3)
Analysis of Variance ANOVA Anwar Ahmad. ANOVA Samples from different populations (treatment groups) Any difference among the population means? Null hypothesis:
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
Control of Experimental Error Blocking - –A block is a group of homogeneous experimental units –Maximize the variation among blocks in order to minimize.
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 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
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.
Chapter 12 Introduction to Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Eighth Edition by Frederick.
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.
Psy 230 Jeopardy Related Samples t-test ANOVA shorthand ANOVA concepts Post hoc testsSurprise $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500 $400.
Correlated-Samples ANOVA The Univariate Approach.
1 Experimental Statistics Spring week 6 Chapter 15: Factorial Models (15.5)
Experimental Statistics - week 3
7-2 Factorial Experiments A significant interaction mask the significance of main effects. Consequently, when interaction is present, the main effects.
One-Way Analysis of Variance Recapitulation Recapitulation 1. Comparing differences among three or more subsamples requires a different statistical test.
1 Experimental Statistics - week 13 Multiple Regression Miscellaneous Topics.
Experimental Statistics - week 9
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.
1 Experimental Statistics - week 8 Chapter 17: Mixed Models Chapter 18: Repeated Measures.
Stats/Methods II JEOPARDY. Jeopardy Estimation ANOVA shorthand ANOVA concepts Post hoc testsSurprise $100 $200$200 $300 $500 $400 $300 $400 $300 $400.
10-1 of 29 ANOVA Experimental Design and Analysis of Variance McGraw-Hill/Irwin Copyright © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
Chapter 12 Introduction to Analysis of Variance
Lesson 10 - Topics SAS Procedures for Standard Statistical Tests and Analyses Programs 19 and 20 LSB 8:16-17.
1 Experimental Statistics - week 5 Chapter 9: Multiple Comparisons Chapter 15: Randomized Complete Block Design (15.3)
After ANOVA If your F < F critical: Null not rejected, stop right now!! If your F > F critical: Null rejected, now figure out which of the multiple means.
Experimental Statistics - Week 4 (Lab)
ANOVA Analysis of Variance.
Experimental Statistics - week 8
ANOVA: Analysis of Variance
Presentation transcript:

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 of water stress on leaf nutrients Each treatment was applied to two randomly selected trees Three randomly selected leaves were sampled per tree From each leaf, two leaf discs were analysed Thus, the total sample consisted of 36 leaf discs

2 40% 20% 0% Four level nested anova Tree (b = 2 ) Replicate (r = 2) Model: β (i)j is ND(0, σ (a)b 2 ) Leaf (c = 3 ) Treatment (a = 3) γ (ij)k is ND(0, σ (ab)c 2 )

3 SourcecdfMSE[MS]F Treatments Trees Leaves Error a-1 a(b-1) ab(c-1) abc(r-1) MS a MS (a)b MS (ab)c MS e bcrσ a 2 +cr σ (a)b 2 + r σ (ab)c 2 +σ 2 cr σ (a)b 2 + r σ (ab)c 2 +σ 2 r σ (ab)c 2 +σ 2 σ 2 MS a /MS (a)b MS (a)b /MS (ab)c MS (ab)c /MS e MS e MS (ab)c = rs (ab)c 2 + s 2 → MS (a)b = cr s (a)b 2 + r s (ab)c 2 +s 2 = cr s (a)b 2 + MS (ab)c → MS a = bcrs a 2 +cr s (a)b 2 + r s (ab)c 2 +s 2 = bcrs a 2 +MS (a)b →

4 How do it with SAS

5 PROC GLM; CLASS treat tree leaf disc; MODEL Nitro = treat tree(treat) leaf(tree treat); /* treatment is a fixed factor, while trees and leaves are random */ RANDOM tree(treat) leaf(tree treat); /* gives the expected means squares */ RUN; DATA nested; /* Nested anova (eks 6-4 in the lecture notes) */ INFILE 'H:\lin-mod\eks6x.prn' firstobs =2 ; INPUT treat $ tree $ leaf $ disc $ Nitro ;

6 General Linear Models Procedure Dependent Variable: NITRO Source DF Sum of Squares Mean Square F Value Pr > F Model Error Corrected Total R-Square C.V. Root MSE NITRO Mean Source DF Type I SS Mean Square F Value Pr > F TREAT TREE(TREAT) LEAF(TREAT*TREE) Source DF Type III SS Mean Square F Value Pr > F TREAT TREE(TREAT) LEAF(TREAT*TREE) NB! These values are based on MS e as the error term, which is wrong!

7 PROC GLM; CLASS treat tree leaf disc; MODEL Nitro = treat tree(treat) leaf(tree treat); /* treatment is a fixed factor, while trees and leaves are random */ RANDOM tree(treat) leaf(tree treat); /* gives the expected means squares */ RUN; DATA nested; /* Nested anova (eks 6-4 in the lecture notes) */ INFILE 'H:\lin-mod\eks6x.prn' firstobs =2 ; INPUT treat $ tree $ leaf $ disc $ Nitro ;

8 General Linear Models Procedure Source Type III Expected Mean Square TREAT Var(Error) + 2 Var(LEAF(TREAT*TREE)) + 6 Var(TREE(TREAT)) + Q(TREAT) TREE(TREAT) Var(Error) + 2 Var(LEAF(TREAT*TREE)) + 6 Var(TREE(TREAT)) LEAF(TREAT*TREE) Var(Error) + 2 Var(LEAF(TREAT*TREE)) bcrτ a 2 +cr σ (a)b 2 + r σ (ab)c 2 +σ 2 cr σ (a)b 2 + r σ (ab)c 2 +σ 2 r σ (ab)c 2 +σ 2

9 PROC GLM; CLASS treat tree leaf disc; MODEL Nitro = treat tree(treat) leaf(tree treat); /* treatment is a fixed factor, while trees and leaves are random */ RANDOM tree(treat) leaf(tree treat); /* gives the expected means squares */ TEST h=treat e= tree(treat); /* tests for the difference between treatments with MS for tree(treat) as denominator */ TEST h= tree(treat) e=leaf(tree treat); /* tests for the difference between trees with MS for leaf(tree treat) as denominator*/

10 General Linear Models Procedure Dependent Variable: NITRO Tests of Hypotheses using the Type III MS for TREE(TREAT) as an error term Source DF Type III SS Mean Square F Value Pr > F TREAT Tests of Hypotheses using the Type III MS for LEAF(TREAT*TREE) as an error term Source DF Type III SS Mean Square F Value Pr > F TREE(TREAT)

11 PROC GLM; CLASS treat tree leaf disc; MODEL Nitro = treat tree(treat) leaf(tree treat); /* treatment is a fixed factor, while trees and leaves are random */ RANDOM tree(treat) leaf(tree treat); /* gives the expected means squares */ TEST h=treat e= tree(treat); /* tests for the difference between treatments with MS for tree(treat) as denominator */ TEST h= tree(treat) e=leaf(tree treat); /* tests for the difference between trees with MS for leaf(tree treat) as denominator*/ MEANS treat / Tukey Dunnett('Control') e= tree(treat) cldiff; /* finds possible significant differences between treatments and the control and the other treatments */ RUN;

12 Tukey's Studentized Range (HSD) Test for variable: NITRO NOTE: This test controls the type I experimentwise error rate. Alpha= 0.05 Confidence= 0.95 df= 3 MSE= Critical Value of Studentized Range= Minimum Significant Difference= Comparisons significant at the 0.05 level are indicated by '***'. Simultaneous Simultaneous Lower Difference Upper TREAT Confidence Between Confidence Comparison Limit Means Limit 20% - 40% % - Control % - 20% % - Control Control - 20% Control - 40%

13 Dunnett's T tests for variable: NITRO NOTE: This tests controls the type I experimentwise error for comparisons of all treatments against a control. Alpha= 0.05 Confidence= 0.95 df= 3 MSE= Critical Value of Dunnett's T= Minimum Significant Difference= Comparisons significant at the 0.05 level are indicated by '***'. Simultaneous Simultaneous Lower Difference Upper TREAT Confidence Between Confidence Comparison Limit Means Limit 20% - Control % - Control

14 PROC NESTED; CLASS treat tree leaf; VAR Nitro; RUN;

15 Coefficients of Expected Mean Squares Source TREAT TREE LEAF ERROR TREAT TREE LEAF ERROR SourcecdfMSE[MS]F Treatments Trees Leaves Error a-1 a(b-1) ab(c-1) abc(r-1) MS a MS (a)b MS (ab)c MS e bcrσ a 2 +cr σ (a)b 2 + r σ (ab)c 2 +σ 2 cr σ (a)b 2 + r σ (ab)c 2 +σ 2 r σ (ab)c 2 +σ 2 σ 2 MS a /MS (a)b MS (a)b /MS (ab)c MS (ab)c /MS e MS e

16 Nested Random Effects Analysis of Variance for Variable NITRO Degrees Variance of Sum of Error Source Freedom Squares F Value Pr > F Term TOTAL TREAT TREE TREE LEAF LEAF ERROR ERROR Variance Variance Percent Source Mean Square Component of Total TOTAL TREAT TREE LEAF ERROR Mean Standard error of mean s 2 =MS e

17 The problem of pseudoreplication

A B C Two-way anova (A fixed, B random) Factor A (drug) Factor B (patient) Replicate 18 measurements If we want to increase the power of the analysis, we may e.g. double the number of measurements But be careful about what you do!

ABC A C B Design 1 Design 2 Both experiments have 36 measurements 3 experimental units/treatment 6 experimental units/treatment Pseudoreplicates Design 2 is best because it uses 6 experimental units/treatment

20 40% 20% 0% Four level nested anova Tree (b = 2 ) Replicate (r = 2) Leaf (c = 3 ) Treatment (a = 3) Trees are the experimental units (2 replicates/treatment) Pseudoreplicates