COMPLETELY RANDOM DESIGN (CRD) -Design can be used when experimental units are essentially homogeneous.

Similar documents
PLSC PRACTICE TEST ONE

PLS205 Lab 2 January 15, Laboratory Topic 3

DESAIN EKSPERIMEN Analysis of Variances (ANOVA) Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

df=degrees of freedom = n - 1

STAT 115:Experimental Designs

Introduction to the Analysis of Variance (ANOVA) Computing One-Way Independent Measures (Between Subjects) ANOVAs

Introduction to the Analysis of Variance (ANOVA)

4.8 Alternate Analysis as a Oneway ANOVA

Laboratory Topics 4 & 5

SAS Commands. General Plan. Output. Construct scatterplot / interaction plot. Run full model

Lecture 3: Inference in SLR

UNIVERSITY EXAMINATIONS NJORO CAMPUS SECOND SEMESTER 2011/2012

SIMPLE LINEAR REGRESSION

Topic 6. Two-way designs: Randomized Complete Block Design [ST&D Chapter 9 sections 9.1 to 9.7 (except 9.6) and section 15.8]

Factorial designs. Experiments

Example: Four levels of herbicide strength in an experiment on dry weight of treated plants.

PLS205 KEY Winter Homework Topic 3. The following represents one way to program SAS for this question:

DESAIN EKSPERIMEN BLOCKING FACTORS. Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

Design & Analysis of Experiments 7E 2009 Montgomery

N J SS W /df W N - 1

EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design

The One-Way Independent-Samples ANOVA. (For Between-Subjects Designs)

Linear Combinations of Group Means

Outline. Topic 19 - Inference. The Cell Means Model. Estimates. Inference for Means Differences in cell means Contrasts. STAT Fall 2013

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

Introduction. Chapter 8

Analysis of variance

Analysis of Variance

Topic 20: Single Factor Analysis of Variance

ANALYSIS OF VARIANCE OF BALANCED DAIRY SCIENCE DATA USING SAS

ANOVA (Analysis of Variance) output RLS 11/20/2016

EXST Regression Techniques Page 1. We can also test the hypothesis H :" œ 0 versus H :"

The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization.

T-test: means of Spock's judge versus all other judges 1 12:10 Wednesday, January 5, judge1 N Mean Std Dev Std Err Minimum Maximum

Analysis of Variance (ANOVA)

Assignment 6 Answer Keys

Topic 12. The Split-plot Design and its Relatives (continued) Repeated Measures

Chapter 4: Randomized Blocks and Latin Squares

Introduction to Crossover Trials

Linear Combinations. Comparison of treatment means. Bruce A Craig. Department of Statistics Purdue University. STAT 514 Topic 6 1

Chapter 11. Analysis of Variance (One-Way)

Lecture 5: Comparing Treatment Means Montgomery: Section 3-5

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

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

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

Lec 1: An Introduction to ANOVA

Topic 13. Analysis of Covariance (ANCOVA) [ST&D chapter 17] 13.1 Introduction Review of regression concepts

Solutions to Final STAT 421, Fall 2008

Inferences for Regression

Lecture 7 Randomized Complete Block Design (RCBD) [ST&D sections (except 9.6) and section 15.8]

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

ANOVA Situation The F Statistic Multiple Comparisons. 1-Way ANOVA MATH 143. Department of Mathematics and Statistics Calvin College

Two-Sample Inferential Statistics

Lecture 7: Latin Square and Related Design

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES

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

Sociology 6Z03 Review II

Power & Sample Size Calculation

Outline. PubH 5450 Biostatistics I Prof. Carlin. Confidence Interval for the Mean. Part I. Reviews

Chapter 7 Comparison of two independent samples

Introduction to Business Statistics QM 220 Chapter 12

These are all actually contrasts (the coef sum to zero). What are these contrasts representing? What would make them large?

Visual interpretation with normal approximation

STAT Chapter 10: Analysis of Variance

Unit 12: Analysis of Single Factor Experiments

AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

MBA 605, Business Analytics Donald D. Conant, Ph.D. Master of Business Administration

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

PLS205 Lab 6 February 13, Laboratory Topic 9

One-Sample and Two-Sample Means Tests

Statistical Techniques II EXST7015 Simple Linear Regression

Multiple comparisons The problem with the one-pair-at-a-time approach is its error rate.

CHAPTER 4 Analysis of Variance. One-way ANOVA Two-way ANOVA i) Two way ANOVA without replication ii) Two way ANOVA with replication

General Linear Model (Chapter 4)

Contrasts and Multiple Comparisons Supplement for Pages

Formal Statement of Simple Linear Regression Model

10/31/2012. One-Way ANOVA F-test

22s:152 Applied Linear Regression. Take random samples from each of m populations.

Reference: Chapter 14 of Montgomery (8e)

What Is ANOVA? Comparing Groups. One-way ANOVA. One way ANOVA (the F ratio test)

Analysis of Variance

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

Outline Topic 21 - Two Factor ANOVA

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

COMPARING SEVERAL MEANS: ANOVA

MULTIVARIATE ANALYSIS OF VARIANCE

Cross-Over Design Experiment (Using SAS)

Statistics 512: Applied Linear Models. Topic 9

Lec 5: Factorial Experiment

One-Way Analysis of Variance (ANOVA) There are two key differences regarding the explanatory variable X.

Orthogonal and Non-orthogonal Polynomial Constrasts

One-Way ANOVA. Some examples of when ANOVA would be appropriate include:

Biological Applications of ANOVA - Examples and Readings

16.3 One-Way ANOVA: The Procedure

Descriptions of post-hoc tests

21.0 Two-Factor Designs

Chapter 10. Design of Experiments and Analysis of Variance

ST Correlation and Regression

Unit 27 One-Way Analysis of Variance

Chapter 4. Latin Square Design

Transcription:

COMPLETELY RANDOM DESIGN (CRD) Description of the Design -Simplest design to use. -Design can be used when experimental units are essentially homogeneous. -Because of the homogeneity requirement, it may be difficult to use this design for field experiments. -The CRD is best suited for experiments with a small number of treatments. Randomization Procedure -Treatments are assigned to experimental units completely at random. -Every experimental unit has the same probability of receiving any treatment. -Randomization is performed using a random number table, computer, program, etc. Example of Randomization -Given you have 4 treatments (A, B, C, and D) and 5 replicates, how many experimental units would you have? D 1 11 C D 1 B B 3 13 A C 4 14 B D 5 15 C C 6 16 B A 7 17 C A 8 18 D B 9 19 A D 10 0 A -Note that there is no blocking of experimental units into replicates. -Every experimental unit has the same probability of receiving any treatment.

Advantages of a CRD 1. Very flexible design (i.e. number of treatments and replicates is only limited by the available number of experimental units).. Statistical analysis is simple compared to other designs. 3. Loss of information due to missing data is small compared to other designs due to the larger number of degrees of freedom for the error source of variation. Disadvantages 1. If experimental units are not homogeneous and you fail to minimize this variation using blocking, there may be a loss of precision.. Usually the least efficient design unless experimental units are homogeneous. 3. Not suited for a large number of treatments. Analysis of the Fixed Effects Model Notation Statistical notation can be confusing, but use of the Y-dot notation can help simplify things. The dot in the Y-dot notation implies summation across over the subscript it replaces. For example, y y y y i. i..... = = n j= 1 = y = y i... a y ij Treatment total, where n n = Treatment mean i= 1 = n j= 1 N = y ij = Experiment total, where a Experiment mean, where N = number of observations in a treatment = = number of treatments total number of observations in the experiment. Linear Additive Model for the CRD Y = µ + τ + ε ij i ij where: Y ij is the j th observation of the i th treatment, µ is the population mean,

τ i is the treatment effect of the i th treatment, and ε is the random error. ij -Using this model we can estimate τ i or ε ij for any observation if we are given Y ij and µ. Example Treatment 1 Treatment Treatment 3 4 9 8 5 10 11 6 11 8 Y i. 15 30 7 Y.. = 7 Y 5 10 9 i. Y.. = 8 Y i. Y -3.. 1 -We can now write the linear model for each observation ( Y ). -Write in µ for each observation. ij Treatment 1 Treatment Treatment 3 4 = 8 9 = 8 8 = 8 5 = 8 10 = 8 11 = 8 6 = 8 11 = 8 8 = 8 Y i. 15 30 7 Y.. = 7 Y 5 10 9 i. Y.. = 8 Y i. Y -3.. 1 -Write in the respective τ i for each observation where τ = Y i. Y.. i Treatment 1 Treatment Treatment 3 4 = 8 3 9 = 8 + 8 = 8 + 1 5 = 8 3 10 = 8 + 11 = 8 + 1 6 = 8 3 11 = 8 + 8 = 8 + 1 Y i. 15 30 7 Y.. = 7 Y 5 10 9 i. Y.. = 8 Y i. Y -3.. 1

-Write in theε ij for each observation. Treatment 1 Treatment Treatment 3 4 = 8 3-1 9 = 8 + - 1 8 = 8 + 1-1 5 = 8 3 + 0 10 = 8 + + 0 11 = 8 + 1 + 6 = 8 3 + 1 11 = 8 + + 1 8 = 8 + 1-1 Y i. 15 30 7 Y.. = 7 Y 5 10 9 i. Y.. = 8 Y i. Y -3.. 1 -Note for each treatment ε ij = 0. -If you are asked to solve for τ 3, what is the answer? -If you are asked to solve for ε 3, what is the answer? -Question: If you are given just the treatment totals ( Y i. s), how would you fill in the values for each of the observations such that the Error SS = 0. Example Answer: Remember that the Experimental Error is the failure of observations treated alike to be the same. Therefore, if all treatments have the same value in each replicate, the Experimental Error SS =0. Given the following information, fill in the values for all Error SS = 0. Treatment 1 Treatment Treatment 3 Y ij s such that the Experimental Y i. 15 30 7 Y.. = 7 Y 5 10 9 i. Y.. = 8

Answer Treatment 1 Treatment Treatment 3 5 10 9 5 10 9 5 10 9 Y i. 15 30 7 Y.. = 7 Y 5 10 9 i. Y.. = 8 Note in the previous two examples that τ i = 0. This is true for all situations. Given H : µ = µ =... = µ H t 0 A i= 1 t 1 : µ µ for at least one pair of treatments (i,i') µ i i i' = µ (i.e., t the sum of the treatment means divided by the number of equals the experiment mean). This definition implies that τ i = 0 = ( Y i. Y.. ). t i= 1 treatments The hypothesis written above can be rewritten in terms of the treatment effects τ i as: H 0 : 1 τ = τ =... = τ = 0 a H A : τ i 0 for at least i. Thus, when we are testing the null hypothesis that all treatments means are the same, we are testing at the same time the null hypothesis that all treatment effects, τ i, are zero. ANOVA for Any Number of Treatments with Equal Replication Given the following data: Treatment Replicate A B C 1 3 4 47 36 6 43 3 31 47 43 4 33 34 39 Y i. 13 149 17 Y... =444 Y ij 3,875 5,805 7,48

Step 1. Write the hypotheses to be tested. H H or 1 1 : µ = µ = µ 1 1 3 3 3 : µ = µ µ µ µ = µ or o A µ µ µ 3 H o : All three means are equal. H A : At least one of the means is different from the other means. Step. Calculate the Correction Factor. CF Y = rt.. 444 = 4*3 = 16,48.0 Step 3. Calculate the Total SS TotalSS = Y ij CF = (3 + 36 + 31 +... + 39 ) CF = 17,108 16,48 = 680.0 Step 4. Calculate the Treatment SS (TRT SS) Yi. TRTSS = CF r 13 = 4 149 + 4 17 + 4 16,48 = 1678.5 1648.0 = 300.5

Step 5. Calculate the Error SS Error SS = Total SS Treatment SS = 680 300.5 = 379.5 Step 6. Complete the ANOVA table Sources of variation Df SS MS F Treatment t-1 = 300.5 150.5 3.563 NS Error t(r-1) = 9 379.5 4.167 Total rt-1 = 11 680.0 Step 7. Look up Table F-values. F 0.05;,9 = 4.6 F 0.01;,9 = 8.0 Step 8. Make conclusions. 0 3.563 4.6 8.0 -Since F-calc (3.563) < 4.6 we fail to reject Ho: at the 95% level of confidence. -Since F-calc (3.563) < 8.0 we fail to reject Ho: at the 99% level of confidence.

Step 9. Calculate Coefficient of Variation (CV). s % CV = *100 Y Remember that the Error MS = s. % CV = 4.167 *100 444 4*3 = ( 6.494/ 37) = 17.6% *100 ANOVA for Any Number of Treatments with Unequal Replication Given the following data: Treatment Replicate A B C D 1.0 1.7.0.1. 1.9.4. 3 1.8 1.5.7. 4.3.5 1.9 5 1.7.4 Y i. 10 5.1 1 8.4 Y.. =35.5 Y ij 0.6 8.75 9.06 17.7 Step 1. Write the hypotheses to be tested. H o : µ 1 = µ = µ 3 = µ 4 H A : At least one of the means is different from one of the other means. Step. Calculate the Correction Factor. Y 35.5 CF = = r i 17.. = 74.13

Step 3. Calculate the Total SS TotalSS = Y ij CF = (.0 +. + 1.8 +... + 1.9 ) CF = 75.77 74.13 = 1.638 Step 4. Calculate the Treatment SS (TRT SS) Yi. TRTSS = CF r i 10 = 5 5.1 + 3 1 + 5 8.4 + 4 74.13 = 75.110 74.13 = 0.978 Step 5. Calculate the Error SS Error SS = Total SS Treatment SS = 1.638 0.978 = 0.660 Step 6. Complete the ANOVA table Sources of variation Df SS MS F Treatment t-1 = 3 0.978 0.36 6.39 ** Error By subtraction = 13 0.660 0.051 Total Total number of observations -1 = 16 1.638

Step 7. Look up Table F-values. F 0.05;3,13 = 3.41 F 0.01;3,13 = 5.74 Step 8. Make conclusions. Since F-calc (6.39) > 3.41 we reject Ho: at the 95% level of confidence. Since F-calc (6.39) > 5.74 we reject Ho: at the 99% level of confidence. 0 3.41 5.74 6.39 Step 9. Calculate Coefficient of Variation (CV). s % CV = *100 Y Remember that the Error MS = s. % CV 0.051 = *100 35.5 17 = ( 0.59 /.088) = 10.8% *100

ANOVA with Sampling (Equal Number of Samples Per Experimental Unit) Linear Model Yijk = µ + τ + ε + δ i ij ijk Where: Y ijk is the k th sample of the j th observation of the i th treatment, µ is the population mean, τ is the treatment effect of the i th treatment, i ε is the random error, and ij δ ijk is the sampling error. ANOVA table SOV Df F Treatment t-1 Treatment MS/Experimental Error MS Experimental error (tr-1) - (t-1) Sampling Error (trs-1) - (tr-1) Total trs-1 Facts about ANOVA with Sampling There are two sources of variation that contribute to the variance appropriate to comparisons among treatment means. 1. Sampling Error = variation among sampling units treated alike ( σ ).. Experimental Error = variation among experimental units treated alike ( σ + ). The Experimental Error MS is expected to be larger than the Sampling Error MS. s s rσ E If the Experimental Error variance component is not important, the Sampling Error MS and the Experimental Error MS will be of the same order of magnitude. If the Experimental Error variance component is important, the Experimental Error MS will be much larger than the Sampling Error MS.

Example (without using a pooled error mean square) Temperature 8 o 1 o 16 o Pot number Pot number Pot number Plant 1 3 1 3 1 3 1 3.5.5 3.0 5.0 3.5 4.5 5.0 5.5 5.5 4.0 4.5 3.0 5.5 3.5 4.0 4.5 6.0 4.5 3 3.0 5.5.5 4.0 3.0 4.0 5.0 5.0 6.5 4 4.5 5.0 3.0 3.5 4.0 5.0 4.5 5.0 5.5 Y ij. 15.0 17.5 11.5 18.0 14.0 17.5 19.0 1.5.0 Y i.. 44.0 49.5 6.5 Y =156.0 Note i = treatment, j = replicate, and k = sample. Step 1. Calculate correction factor: Y... rts = 156 3(3)(4) = 676 Step. Calculate the Total SS: TotalSS = Y ijk CF = ( 3.5 + 4.0 + 3.0 +... + 5.5 ) = 71.5 676.0 CF = 36.5 Step 3. Calculate the Treatment SS: Yi.. TreatmentSS = CF rs 44 49.5 = + 3(4) (3(4) 6.5 + 676.0 3(4) = 691.04 676.0 = 15.04

Step 4. Calculate the SS Among Experimental Units Total (SSAEUT) Yij. SSAEUT = CF s 15 = 4 17.5 + 4 11.5 + 4.0 +... + 4 676.0 = 699.5 676.0 = 3.5 Step 5. Calculate the Experimental Error SS: Experimental Error SS = SSAEUT SS TRT = 3.5 15.04 = 8.08 Step 6. Calculate the Sampling Error SS: Sampling Error SS = Total SS SSAEUT = 36.5 3.5 = 13.5 Step 7. Complete the ANOVA Table: SOV Df SS MS F Treatment t-1 = 15.04 7.51 5.498 * Experimental Error (tr-1) - (t-1) = 6 8.08 1.368 Sampling Error (trs-1) - (tr-1) = 7 13.5 Total trs-1 = 35 36.5 Step 8 Look up Table F-values. F-value = Trt MS/Expt Error MS F 0.05;,6 = 5.14 F 0.01;,6 = 10.9

Step 8. Make conclusions. Since F-calc (5.498) > 5.14 we reject Ho: at the 95% level of confidence. Since F-calc (5.498) < 10.9 we fail to reject Ho: at the 99% level of confidence. 0 5.14 10.9 5.498 ANOVA When the Number of Subsamples are Not Equal Y... TotalSS = Yijk df = #observations 1 total# ofobservations Yi.. Y... TreatmentSS = r s total# ofobs. j k df = # treatments 1 SSAEUT Yij. Y... = s total# ofobs. k df = # Experimental units 1 SS Experimental Error = SSAEUT SS TRT SS Sampling Error = Total SS SSAEUT df = SSAEUT df TRT df df = Total df SSAEUT Assumptions Underlying ANOVA Experimental errors are random, independently, and normally distributed about a mean of zero and with a common variance (i.e. treatment variances are homogenous). The above assumption can be express as NID(0, σ ). Departure from this assumption can affect both the level of significance and the sensitivity of F- or t-tests to real departures from H o :

This results in the rejection of Ho when it is true (i.e. a Type I Error) more often than α calls for. The power of the test also is reduced if the assumption of NID(0, σ ) is violated. Violation of the assumption NID(0, σ ) with the fixed model is usually of little consequence because ANOVA is a very robust technique. Violation of the basic assumptions of ANOVA can be investigated by observing plots of the residuals. Residuals will be discussed in more detail when Transformations are discussed later in the semester.

OPTIONAL MATERIAL: ANOVA of CRD With Sampling (Use of the Pooled Error MS) We will use the data from the previous example for performing the F-test on treatments using a Pooled Error Mean Square. The advantage of using the Pooled Error Mean Square as the denominator of the F-test is that you will have more degrees of freedom associated with denominator. This may allow you to detect smaller significant differences between treatment means than you may have by using the Experimental Error Mean Square. Example Steps 1-6 are the same as in the previous example. Step 7. Complete the ANOVA, but don t calculate the F-value. SOV Df SS MS F Treatment t-1 = 15.04 7.51 Experimental Error (tr-1) - (t-1) = 6 8.08 1.368 Sampling Error (trs-1) - (tr-1) = 7 13.5 0.491 Total trs-1 = 35 36.5 Pooled Error 33 1.458 0.65 Step 7.1 Calculate the Sampling Error Mean Square. Step 7. Test the homogeneity of the Sampling and Experimental Error Mean Square using the folded F-test. If they are homogeneous a Pooled Error MS can be calculated and used as the denominator of the F-test on treatments. We need to remember that the expected mean square for the Sampling Error = and the expected mean square for the Experimental Error = σ s + rσ E. Thus the Experimental Error MS is expected to be > the Sampling Error MS. Remember from the t-test that the Folded F-test involves the larger MS/smaller MS. Thus, in our case the Folded F = Experimental Error MS / Sampling Error MS. If the variances are similar, the component of Square will approach the value zero. σ s rσ in the Experimental Error Mean E

F = 1.368 0.491 =.786 Step 7.3 Look up the table F-value This F-test is a one-tail test because there is the expectation that the Experimental σ. Error MS ( σ + ) is going to be larger than the Sampling Error MS ( ) S sσ E Thus, if you are testing α = 0.01, then you need to use the F-table for α = 0.01. S = F ExptErrdf 0.01;6,7 = 3. 558 F 0.01,( )( SampErrdf ) Step 7.4 Make conclusions: Since the calculated value of F (.786) is less than the Table-F value (3.558), we fail to reject H o : Sampling Error MS = Experimental Error MS at the 99% level of confidence. Therefore, we can calculate a Pooled Error MS Step 7.5: Calculate the Pooled Error df and the Pooled Error MS Pooled Error df = Sampling Error df + Experimental Error df = (6+7) = 33 Pooled Error MS = Sampling Error SS + Experimental Error SS Sampling Error df + Experimental Error df 13.5 + 8.08 = = 0. 650 6 + 7 Step 8. Complete the ANOVA by calculating the F-value using the Pooled Error MS as the denominator of the F-test. SOV Df SS MS F Treatment t-1 = 15.04 7.51 11.57** Experimental Error (tr-1) - (t-1) = 6 8.08 1.368 Sampling Error (trs-1) - (tr-1) = 7 13.5 0.491 Total trs-1 = 35 36.5 Pooled Error 33 1.458 0.65 F-value = Trt MS/Pooled Error MS

Step 9 Look up Table F-values. F 0.05;,33 = 3.30 F 0.01;,33 = 5.37 Step 10. Make conclusions. Since F-calc (11.57) > 3.30 we reject H o : at the 95% level of confidence. Since F-calc (11.57) > 5.37 we reject H o : at the 99% level of confidence. 0 3.30 5.37 11.57

SAS commands for a CRD with no sampling; options pageno=1; data crd; input Trt $ yield; datalines; a 3 a 36 a 31 a 33 b 4 b 6 b 47 b 34 c 47 c 43 c 43 c 39 ;; ods rtf file='crd.rtf'; proc anova; class trt; model yield=trt; means trt/lsd; title 'ANOVA for a CRD with no Sampling'; run; ods rtf close;

ANOVA for a CRD with no Sampling The ANOVA Procedure Class Level Information Class Levels Values Trt 3 a b c Number of Observations Read 1 Number of Observations Used 1

ANOVA for a CRD with no Sampling The ANOVA Procedure Dependent Variable: yield Source DF Sum of Squares Mean Square F Value Pr > F Model 300.5000000 150.500000 3.56 0.075 Error 9 379.5000000 4.1666667 Corrected Total 11 680.0000000 R-Square Coeff Var Root MSE yield Mean 0.44191 17.5503 6.493587 37.00000 Source DF Anova SS Mean Square F Value Pr > F Trt 300.5000000 150.500000 3.56 0.075

ANOVA for a CRD with no Sampling The ANOVA Procedure NoteThis test controls the Type I comparisonwise error rate, not the : experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 9 Error Mean Square 4.1666 7 Critical Value of t.616 Least Significant Difference 10.387 Means with the same letter are not significantly different. t Grouping Mean N Trt A 43.000 4 c A B A 37.50 4 b B B 30.750 4 a

CRD with Sampling (Using the Experimental Error and Pooled Error MS as the denominator of the F-tests) options pageno=1; data crdsamp; input trt rep sample kwt; datalines; 8 1 1 3.5 8 1 4 8 1 3 3 8 1 4 4.5 8 1.5 8 4.5 8 3 5.5 8 4 5 8 3 1 3 8 3 3 8 3 3.5 8 3 4 3 1 1 1 5 1 1 5.5 1 1 3 4 1 1 4 3.5 1 1 3.5 1 3.5 1 3 3 1 4 4 1 3 1 4.5 1 3 4 1 3 3 4 1 3 4 5 16 1 1 5 16 1 4.5 16 1 3 5 16 1 4 4.5 16 1 5.5 16 6 16 3 5 16 4 5 16 3 1 5.5 16 3 4.5 16 3 3 6.5 16 3 4 5.5 ;; ods rtf file='example.rtf'; run; proc anova; class trt rep sample; model kwt=trt rep*trt; *Comment The rep*trt commmand = the experimental error; test h=trt e=rep*trt; *The previous statement tells SAS to use the Experimental Error MS as the denominator of the F-test; means trt/lsd e=rep*trt; title 'CRD with Sampling - Using Experimental Error as the Denominator';

run; proc anova; class trt rep sample; model kwt=trt; *The previous statement does not have the rep*trt statement, which is equivalent to the Expt. Error MS; means trt/lsd; title 'CRD with Sampling - Using Pooled Error as the Denominator'; run; ods rtf close;

CRD with Sampling - Using Experimental Error as the Denominator The ANOVA Procedure Class Level Information Class Levels Values trt 3 8 1 16 rep 3 1 3 sample 4 1 3 4 Number of Observations Read 36 Number of Observations Used 36

CRD with Sampling - Using Experimental Error as the Denominator Dependent Variable: kwt The ANOVA Procedure Source DF Sum of Squares Mean Square F Value Pr > F Model 8 3.5000000.9065000 5.9 0.000 Error 7 13.5000000 0.49074074 Corrected Total 35 36.50000000 This MS is the Sampling Error MS R-Square Coeff Var Root MSE kwt Mean 0.636986 16.16605 0.70059 4.333333 Source DF Anova SS Mean Square F Value Pr > F trt 15.04166667 7.5083333 15.33 <.0001 trt*rep 6 8.0833333 1.36805556.79 0.0305 This MS is the Experimental Error MS Tests of Hypotheses Using the Anova MS for trt*rep as an Error Term Source DF Anova SS Mean Square F Value Pr > F trt 15.04166667 7.5083333 5.50 0.0440 Correct result of the F- test using the Expt. Error MS as the denominator of the F- test.

CRD with Sampling - Using Experimental Error as the Denominator The ANOVA Procedure t Tests (LSD) for kwt Note: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 6 Error Mean Square 1.368056 Critical Value of t.44691 Least Significant Difference 1.1684 Means with the same letter are not significantly different. t Grouping Mean N trt A 5.083 1 16 A B A 4.150 1 1 B B 3.6667 1 8

CRD with Sampling - Using Pooled Error as the Denominator The ANOVA Procedure Class Level Information Class Levels Values trt 3 8 1 16 rep 3 1 3 sample 4 1 3 4 Number of Observations Read 36 Number of Observations Used 36

CRD with Sampling - Using Pooled Error as the Denominator Dependent Variable: kwt The ANOVA Procedure Source DF Sum of Squares Mean Square F Value Pr > F Model 15.04166667 7.5083333 11.57 0.000 Error 33 1.45833333 0.650553 Corrected Total 35 36.50000000 R-Square Coeff Var Root MSE kwt Mean 0.41100 18.6088 0.80638 4.333333 Pooled Error MS Source DF Anova SS Mean Square F Value Pr > F trt 15.04166667 7.5083333 11.57 0.000 Correct value for F-test using the Pooled Error MS as the denominator of the F-test.

CRD with Sampling - Using Pooled Error as the Denominator The ANOVA Procedure t Tests (LSD) for kwt Note: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 33 Error Mean Square 0.65053 Critical Value of t.0345 Least Significant Difference 0.6698 Means with the same letter are not significantly different. t Grouping Mean N trt A 5.083 1 16 B 4.150 1 1 B B 3.6667 1 8