Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized...

454
Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA Factorial designs Applied Statistics and Experimental Design Chapter 6 Peter Hoff Statistics, Biostatistics and the CSSS University of Washington

Transcript of Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized...

Page 1: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Factorial designsApplied Statistics and Experimental Design

Chapter 6

Peter Hoff

Statistics, Biostatistics and the CSSSUniversity of Washington

Page 2: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 3: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 4: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 5: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 6: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 7: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 8: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 9: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 10: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example (Insecticide):

In developing methods of pest control, researchers are interested in the efficacyof different types of poison and different delivery methods.

• Treatments:• Type ∈ {I , II , III}• Delivery ∈ {A,B,C ,D}

• Response: time to death, in minutes.

Possible experimental design: Perform two separate CRD experiments, onetesting for the effects of Type and the other for Delivery. But,

which Delivery to use for the experiment testing for Type effects?

which Type to use for the experiment testing for Delivery effects?

To compare different Type×Delivery combinations, we need to do experimentsunder all 12 treatment combinations.

Page 11: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 12: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 13: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 14: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 15: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 16: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 17: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 18: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 19: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental design:

48 insects randomly assigned, 4 to each of the 12 treatment combos:

4 assigned to (I ,A),

4 assigned to (I ,B),

...

It might be helpful to visualize the design as follows:

DeliveryType A B C D

1 yI ,A yI ,B yI ,C yI ,D

2 yII ,A yII ,B yII ,C yII ,D

3 yIII ,A yIII ,B yIII ,C yIII ,D

This type of design is called a factorial design.It is a 3× 4 two-factor design with 4 replications per treatment combination.

Factors: Categories of treatments

Levels of a factor: the different treatments in a category

Type and Delivery are both factors.There are 3 levels of Type and 4 levels of Delivery.

Page 20: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Marginal plots plots:

I II III

24

68

1012

A B C D2

46

810

12

Page 21: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Conditional plots

I II III

2.0

2.5

3.0

3.5

4.0

4.5

A

I II III

46

810

12

B

I II III

23

45

67

C

I II III

34

56

78

910

D

Page 22: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Cell plots

I.A II.A I.B II.B I.C II.C I.D II.D

24

68

1012

Page 23: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Preliminary findings

Marginal Plots: Based on these marginal plots, it looks like (III ,A) would bethe most effective combination. But are the effects of Type consistentacross levels of Delivery?

Conditional Plots: Type III looks best across delivery types. But the differencebetween types I and II seems to depend on delivery. For example, fordelivery methods B or D there doesn’t seem to be much of a differencebetween I and II.

Cell Plots: Another way of looking at the data is to just view it as a CRD with3× 4 = 12 different groups. Sometimes each group is called a cell.

Page 24: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Preliminary findings

Marginal Plots: Based on these marginal plots, it looks like (III ,A) would bethe most effective combination. But are the effects of Type consistentacross levels of Delivery?

Conditional Plots: Type III looks best across delivery types. But the differencebetween types I and II seems to depend on delivery. For example, fordelivery methods B or D there doesn’t seem to be much of a differencebetween I and II.

Cell Plots: Another way of looking at the data is to just view it as a CRD with3× 4 = 12 different groups. Sometimes each group is called a cell.

Page 25: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Preliminary findings

Marginal Plots: Based on these marginal plots, it looks like (III ,A) would bethe most effective combination. But are the effects of Type consistentacross levels of Delivery?

Conditional Plots: Type III looks best across delivery types. But the differencebetween types I and II seems to depend on delivery. For example, fordelivery methods B or D there doesn’t seem to be much of a differencebetween I and II.

Cell Plots: Another way of looking at the data is to just view it as a CRD with3× 4 = 12 different groups. Sometimes each group is called a cell.

Page 26: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Preliminary findings

Marginal Plots: Based on these marginal plots, it looks like (III ,A) would bethe most effective combination. But are the effects of Type consistentacross levels of Delivery?

Conditional Plots: Type III looks best across delivery types. But the differencebetween types I and II seems to depend on delivery. For example, fordelivery methods B or D there doesn’t seem to be much of a differencebetween I and II.

Cell Plots: Another way of looking at the data is to just view it as a CRD with3× 4 = 12 different groups. Sometimes each group is called a cell.

Page 27: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Mean variance relationship

Notice that there seems to be a bit of a mean-variance relationship.

> lm ( l o g ( s d s )˜ l o g ( means ) )C o e f f i c i e n t s :( I n t e r c e p t ) l o g ( means )

−3.203 1 . 9 7 7

0.0 1.0 2.0 3.0

23

45

67

89

sds

mea

ns

●●

0.8 1.2 1.6 2.0

−2.

0−

1.0

0.0

1.0

log(means)

log(

sds)

Page 28: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Transformed data

σi ≈ cµ2i suggesting a reciprocal transformation, i.e. yi,j = 1/ time to death.

Does this reduce the relationship between means and variances?

●●

0.02 0.04 0.06 0.08

0.2

0.3

0.4

sds

mea

ns

●●

−2.2 −1.8 −1.4 −1.0−

3.8

−3.

4−

3.0

−2.

6log(means)

log(

sds)

The transformation seems to have improved things. We select this as our datascale and start from scratch, beginning with plots.

Page 29: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Transformed data

σi ≈ cµ2i suggesting a reciprocal transformation, i.e. yi,j = 1/ time to death.

Does this reduce the relationship between means and variances?

●●

0.02 0.04 0.06 0.08

0.2

0.3

0.4

sds

mea

ns

●●

−2.2 −1.8 −1.4 −1.0−

3.8

−3.

4−

3.0

−2.

6log(means)

log(

sds)

The transformation seems to have improved things. We select this as our datascale and start from scratch, beginning with plots.

Page 30: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Transformed data

σi ≈ cµ2i suggesting a reciprocal transformation, i.e. yi,j = 1/ time to death.

Does this reduce the relationship between means and variances?

●●

0.02 0.04 0.06 0.08

0.2

0.3

0.4

sds

mea

ns

●●

−2.2 −1.8 −1.4 −1.0−

3.8

−3.

4−

3.0

−2.

6log(means)

log(

sds)

The transformation seems to have improved things. We select this as our datascale and start from scratch, beginning with plots.

Page 31: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

I II III2

46

810

12

A B C D

24

68

1012

I II III

0.25

0.35

0.45

0.55

A

I II III

0.10

0.20

0.30

B

I II III

0.15

0.25

0.35

0.45

C

I II III

0.10

0.20

0.30

D

I.A II.A III.A I.B II.B III.B I.C II.C III.C I.D II.D III.D

0.1

0.2

0.3

0.4

0.5

Page 32: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Possible analysis methods

Let’s first try to analyze these data using our existing tools:

Two one-factor ANOVAS:

• just looking at Type, the experiment is a one-factor ANOVA with 3treatment levels and 16 reps per treatment.

• just looking at Delivery, the experiment is a one factor ANOVA with 4treatment levels and 12 reps per treatment.

> dat$y <−1/dat$y> anova ( lm ( dat$y ˜ d a t $ t y p e ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ t y p e 2 0.34877 0.17439 25 .621 3 . 7 2 8 e−08 ∗∗∗R e s i d u a l s 45 0 .30628 0.00681−−−

> anova ( lm ( dat$y ˜ d a t $ d e l i v e r y ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ d e l i v e r y 3 0 .20414 0.06805 6 .6401 0.0008496 ∗∗∗R e s i d u a l s 44 0 .45091 0.01025−−−

Page 33: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Possible analysis methods

Let’s first try to analyze these data using our existing tools:

Two one-factor ANOVAS:

• just looking at Type, the experiment is a one-factor ANOVA with 3treatment levels and 16 reps per treatment.

• just looking at Delivery, the experiment is a one factor ANOVA with 4treatment levels and 12 reps per treatment.

> dat$y <−1/dat$y> anova ( lm ( dat$y ˜ d a t $ t y p e ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ t y p e 2 0.34877 0.17439 25 .621 3 . 7 2 8 e−08 ∗∗∗R e s i d u a l s 45 0 .30628 0.00681−−−

> anova ( lm ( dat$y ˜ d a t $ d e l i v e r y ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ d e l i v e r y 3 0 .20414 0.06805 6 .6401 0.0008496 ∗∗∗R e s i d u a l s 44 0 .45091 0.01025−−−

Page 34: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Possible analysis methods

Let’s first try to analyze these data using our existing tools:

Two one-factor ANOVAS:

• just looking at Type, the experiment is a one-factor ANOVA with 3treatment levels and 16 reps per treatment.

• just looking at Delivery, the experiment is a one factor ANOVA with 4treatment levels and 12 reps per treatment.

> dat$y <−1/dat$y> anova ( lm ( dat$y ˜ d a t $ t y p e ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ t y p e 2 0.34877 0.17439 25 .621 3 . 7 2 8 e−08 ∗∗∗R e s i d u a l s 45 0 .30628 0.00681−−−

> anova ( lm ( dat$y ˜ d a t $ d e l i v e r y ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ d e l i v e r y 3 0 .20414 0.06805 6 .6401 0.0008496 ∗∗∗R e s i d u a l s 44 0 .45091 0.01025−−−

Page 35: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Possible analysis methods

Let’s first try to analyze these data using our existing tools:

Two one-factor ANOVAS:

• just looking at Type, the experiment is a one-factor ANOVA with 3treatment levels and 16 reps per treatment.

• just looking at Delivery, the experiment is a one factor ANOVA with 4treatment levels and 12 reps per treatment.

> dat$y <−1/dat$y> anova ( lm ( dat$y ˜ d a t $ t y p e ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ t y p e 2 0.34877 0.17439 25 .621 3 . 7 2 8 e−08 ∗∗∗R e s i d u a l s 45 0 .30628 0.00681−−−

> anova ( lm ( dat$y ˜ d a t $ d e l i v e r y ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ d e l i v e r y 3 0 .20414 0.06805 6 .6401 0.0008496 ∗∗∗R e s i d u a l s 44 0 .45091 0.01025−−−

Page 36: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Possible analysis methods

A one-factor ANOVA: There are 3× 4 = 12 different treatments:

> anova ( lm ( dat$y ˜ d a t $ t y p e : d a t $ d e l i v e r y ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )d a t $ t y p e : d a t $ d e l i v e r y 11 0.56862 0.05169 21 .531 1 . 2 8 9 e−12 ∗∗∗R e s i d u a l s 36 0 .08643 0.00240−−−

Page 37: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 38: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 39: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 40: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 41: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 42: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 43: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Limitations of current approaches

Why might these methods be insufficient?

• What are the SSE, MSE representing in the first two ANOVAS? Why arethey bigger than the value in the in the third ANOVA?

• In the third ANOVA, can we assess the effects of Type and Deliveryseparately?

• Can you think of a situation where the F -stats in the first and secondANOVAs would be “small”, but the F -stat in the third ANOVA “big”?

Basically, the first and second ANOVAs may mischaracterize the data andsources of variation.

The third ANOVA is “valid,” but we’d like a more specific result: we’d like toknow which factors are sources of variation, and the relative magnitude of theireffects.

Also, if the effects of one factor are consistent across levels of the other, maybewe don’t need to have a separate parameter for each of the 12 treatmentcombinations, i.e. a simpler model may suffice.

Page 44: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Yi,j,k = µ+ ai + bj + εi,j,k , i = 1, . . . ,m1, j = 1, . . . ,m2, k = 1, . . . , n

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

Page 45: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Yi,j,k = µ+ ai + bj + εi,j,k , i = 1, . . . ,m1, j = 1, . . . ,m2, k = 1, . . . , n

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

Page 46: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Yi,j,k = µ+ ai + bj + εi,j,k , i = 1, . . . ,m1, j = 1, . . . ,m2, k = 1, . . . , n

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

Page 47: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Yi,j,k = µ+ ai + bj + εi,j,k , i = 1, . . . ,m1, j = 1, . . . ,m2, k = 1, . . . , n

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

Page 48: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Yi,j,k = µ+ ai + bj + εi,j,k , i = 1, . . . ,m1, j = 1, . . . ,m2, k = 1, . . . , n

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

Page 49: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 50: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 51: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 52: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 53: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 54: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 55: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 56: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Additive effects model

Comments:

1. Side conditions: As with with the treatment effects model in theone-factor case, we only need m1 − 1 parameters to differentiate betweenm1 means, so we usually• restrict a1 = 0, b1 = 0 (set-to-zero side conditions ), OR• restrict

Pai = 0,

Pbj = 0 (sum-to-zero side conditions).

2. Model limitations: The additive model is a reduced model :• There are m1 ×m2 groups or treatment combinations ;• a full model fits the pop. means separately for each treatment combo;• this would require m1 ×m2 parameters.

In contrast, the additive model only has1 parameter for µm1 − 1 parameters for ai ’sm2 − 1 parameters for bj ’sm1 + m2 − 1 parameters total.

Page 57: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 58: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 59: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 60: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 61: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 62: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 63: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

These are the least-squares parameter estimates,with sum-to-zero side conditions:X

ai =X

(yi·· − y···) = ny··· − ny··· = 0

To obtain the set-to-zero side conditions, add a1 and b1 to µ, subtract a1 fromthe ai ’s, and subtract b1 from the bj ’s. Note that this does not change thefitted value in each group:

fitted(yijk) = µ + ai + bj

= (µ+ a1 + b1) + (ai − a1) + (bj − b1)

= µ∗ + a∗i + b∗j

Page 64: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 65: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 66: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 67: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 68: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 69: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 70: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 71: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Vector representation

We can write this decomposition out as vectors of length m1 ×m2 × n:

y − y··· = a + b + εvT = v1 + v2 + ve

The columns represent

vT variation of the data around the grand mean;

v1 variation of factor 1 means around the grand mean;

v2 variation of factor 2 means around the grand mean;

ve variation of the data around fitted the values.

You should be able to show that these vectors are orthogonal, and soPi

Pj

Pk(yijk − y···)

2 =P

i

Pj

Pk a2

i +P

i

Pj

Pk b2

i +P

i

Pj

Pk ε

2i

SSTotal = SSA + SSB + SSE

Page 72: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Degrees of Freedom

• a contains m1 different numbers but sums to zero → m1 − 1 dof

• b contains m2 different numbers but sums to zero → m2 − 1 dof

ANOVA table

Source SS df MS FA SSA m1 − 1 SSA/dfA MSA/MSEB SSB m2 − 1 SSB/dfB MSB/MSE

Error SSE (m1 − 1)(m2 − 1) + m1m2(n − 1) SSE/dfETotal SSTotal m1m2n − 1

Page 73: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Degrees of Freedom

• a contains m1 different numbers but sums to zero → m1 − 1 dof

• b contains m2 different numbers but sums to zero → m2 − 1 dof

ANOVA table

Source SS df MS FA SSA m1 − 1 SSA/dfA MSA/MSEB SSB m2 − 1 SSB/dfB MSB/MSE

Error SSE (m1 − 1)(m2 − 1) + m1m2(n − 1) SSE/dfETotal SSTotal m1m2n − 1

Page 74: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Degrees of Freedom

• a contains m1 different numbers but sums to zero → m1 − 1 dof

• b contains m2 different numbers but sums to zero → m2 − 1 dof

ANOVA table

Source SS df MS FA SSA m1 − 1 SSA/dfA MSA/MSEB SSB m2 − 1 SSB/dfB MSB/MSE

Error SSE (m1 − 1)(m2 − 1) + m1m2(n − 1) SSE/dfETotal SSTotal m1m2n − 1

Page 75: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANOVA for the poison data

> anova ( lm ( dat$y ˜ d a t $ t y p e+d a t $ d e l i v e r y ) )A n a l y s i s o f V a r i a n c e Table

Response : dat$yDf Sum Sq Mean Sq F v a l u e

d a t $ t y p e 2 0.34877 0.17439 71 .708d a t $ d e l i v e r y 3 0 .20414 0.06805 27 .982R e s i d u a l s 42 0 .10214 0.00243

The ANOVA has decomposed the variance in the data into the variance of

• additive Type effects,

• additive Delivery effects,

• and residuals.

Does this adequately represent what is going on in the data?

Page 76: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANOVA for the poison data

> anova ( lm ( dat$y ˜ d a t $ t y p e+d a t $ d e l i v e r y ) )A n a l y s i s o f V a r i a n c e Table

Response : dat$yDf Sum Sq Mean Sq F v a l u e

d a t $ t y p e 2 0.34877 0.17439 71 .708d a t $ d e l i v e r y 3 0 .20414 0.06805 27 .982R e s i d u a l s 42 0 .10214 0.00243

The ANOVA has decomposed the variance in the data into the variance of

• additive Type effects,

• additive Delivery effects,

• and residuals.

Does this adequately represent what is going on in the data?

Page 77: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANOVA for the poison data

> anova ( lm ( dat$y ˜ d a t $ t y p e+d a t $ d e l i v e r y ) )A n a l y s i s o f V a r i a n c e Table

Response : dat$yDf Sum Sq Mean Sq F v a l u e

d a t $ t y p e 2 0.34877 0.17439 71 .708d a t $ d e l i v e r y 3 0 .20414 0.06805 27 .982R e s i d u a l s 42 0 .10214 0.00243

The ANOVA has decomposed the variance in the data into the variance of

• additive Type effects,

• additive Delivery effects,

• and residuals.

Does this adequately represent what is going on in the data?

Page 78: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANOVA for the poison data

> anova ( lm ( dat$y ˜ d a t $ t y p e+d a t $ d e l i v e r y ) )A n a l y s i s o f V a r i a n c e Table

Response : dat$yDf Sum Sq Mean Sq F v a l u e

d a t $ t y p e 2 0.34877 0.17439 71 .708d a t $ d e l i v e r y 3 0 .20414 0.06805 27 .982R e s i d u a l s 42 0 .10214 0.00243

The ANOVA has decomposed the variance in the data into the variance of

• additive Type effects,

• additive Delivery effects,

• and residuals.

Does this adequately represent what is going on in the data?

Page 79: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANOVA for the poison data

> anova ( lm ( dat$y ˜ d a t $ t y p e+d a t $ d e l i v e r y ) )A n a l y s i s o f V a r i a n c e Table

Response : dat$yDf Sum Sq Mean Sq F v a l u e

d a t $ t y p e 2 0.34877 0.17439 71 .708d a t $ d e l i v e r y 3 0 .20414 0.06805 27 .982R e s i d u a l s 42 0 .10214 0.00243

The ANOVA has decomposed the variance in the data into the variance of

• additive Type effects,

• additive Delivery effects,

• and residuals.

Does this adequately represent what is going on in the data?

Page 80: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] =

µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 81: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] =

µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 82: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 83: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] =

µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 84: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 85: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 86: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 87: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 88: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 89: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is a reduced model

What do we mean by additive? Assuming the model is correct, we have:

E[Y |type=I, delivery=A] = µ+ a1 + b1

E[Y |type=II, delivery=A] = µ+ a2 + b1

The difference between Type I and Type II is a1 − a2 regardless of Delivery.

Does this look right based on the plots? Consider the following table:

Effect of Type I vs II, given DeliveryDelivery full model additive model

A µIA − µIIA (µ+ a1 + b1)− (µ+ a2 + b1) = a1 − a2

B µIB − µIIB (µ+ a1 + b2)− (µ+ a2 + b2) = a1 − a2

C µIC − µIIC (µ+ a1 + b3)− (µ+ a2 + b3) = a1 − a2

D µID − µIID (µ+ a1 + b4)− (µ+ a2 + b4) = a1 − a2

• full model allows differences between Types to vary across Delivery

• reduced/additive model says differences are constant across Delivery.

Therefore, the reduced model is appropriate if

(µIA − µIIA) = (µIB − µIIB) = (µIC − µIIC ) = (µID − µIID)

How can we test for this?

Page 90: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 91: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 92: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 93: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 94: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 95: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 96: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 97: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction model:

Yijk = µ+ ai + bj + (ab)ij + εijk

µ = overall mean;

a1, . . . , am1 = additive effects of factor 1;

b1, . . . , bm2 = additive effects of factor 2.

(ab)ij = interaction terms = deviations from additivity.

The interaction term is a correction for non-additivity of the factor effects.This is a full model: It fits a separate mean for each treatment combination:

E(Yijk) = µij = µ+ ai + bj + (ab)ij

Page 98: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

interaction = fitted under full− fitted under additive

(ab)ij = yij· − (yi·· + y··j − y···)

Deciding between the additive/reduced model and the interaction/full model isequivalent to

• deciding if the variance explained by the ˆ(ab)ij ’s is large or not,

• i.e. whether or not the full model is close to the additive model.

Page 99: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

interaction = fitted under full− fitted under additive

(ab)ij = yij· − (yi·· + y··j − y···)

Deciding between the additive/reduced model and the interaction/full model isequivalent to

• deciding if the variance explained by the ˆ(ab)ij ’s is large or not,

• i.e. whether or not the full model is close to the additive model.

Page 100: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

interaction = fitted under full− fitted under additive

(ab)ij = yij· − (yi·· + y··j − y···)

Deciding between the additive/reduced model and the interaction/full model isequivalent to

• deciding if the variance explained by the ˆ(ab)ij ’s is large or not,

• i.e. whether or not the full model is close to the additive model.

Page 101: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

interaction = fitted under full− fitted under additive

(ab)ij = yij· − (yi·· + y··j − y···)

Deciding between the additive/reduced model and the interaction/full model isequivalent to

• deciding if the variance explained by the ˆ(ab)ij ’s is large or not,

• i.e. whether or not the full model is close to the additive model.

Page 102: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Parameter estimation and ANOVA decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

interaction = fitted under full− fitted under additive

(ab)ij = yij· − (yi·· + y··j − y···)

Deciding between the additive/reduced model and the interaction/full model isequivalent to

• deciding if the variance explained by the ˆ(ab)ij ’s is large or not,

• i.e. whether or not the full model is close to the additive model.

Page 103: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating additivity:

Recall the additive model

yijk = µ+ ai + bj + εijk

• i = 1, . . . ,m1 indexes the levels of factor 1

• j = 1, . . . ,m2 indexes the levels of factor 1

• k = 1, . . . , n indexes the replications for each of the m1 ×m2 treatmentcombinations.

Parameter estimates are obtained via the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

Page 104: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating additivity:

Recall the additive model

yijk = µ+ ai + bj + εijk

• i = 1, . . . ,m1 indexes the levels of factor 1

• j = 1, . . . ,m2 indexes the levels of factor 1

• k = 1, . . . , n indexes the replications for each of the m1 ×m2 treatmentcombinations.

Parameter estimates are obtained via the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

Page 105: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating additivity:

Recall the additive model

yijk = µ+ ai + bj + εijk

• i = 1, . . . ,m1 indexes the levels of factor 1

• j = 1, . . . ,m2 indexes the levels of factor 1

• k = 1, . . . , n indexes the replications for each of the m1 ×m2 treatmentcombinations.

Parameter estimates are obtained via the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

Page 106: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating additivity:

Recall the additive model

yijk = µ+ ai + bj + εijk

• i = 1, . . . ,m1 indexes the levels of factor 1

• j = 1, . . . ,m2 indexes the levels of factor 1

• k = 1, . . . , n indexes the replications for each of the m1 ×m2 treatmentcombinations.

Parameter estimates are obtained via the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

Page 107: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating additivity:

Recall the additive model

yijk = µ+ ai + bj + εijk

• i = 1, . . . ,m1 indexes the levels of factor 1

• j = 1, . . . ,m2 indexes the levels of factor 1

• k = 1, . . . , n indexes the replications for each of the m1 ×m2 treatmentcombinations.

Parameter estimates are obtained via the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yijk − yi·· − y·j· + y···)

= µ + ai + bj + εijk

Page 108: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Fitted values and residuals

Fitted value:

yijk = µ+ ai + bj

= y··· + (yi·· − y···) + (y·j· − y···)

= yi·· + y·j· − y···

In this model the fitted value in one cell depends on data from the others.

Residual:

εijk = yijk − yijk

= (yijk − yi·· − y·j· + y···)

As we discussed, this model is “adequate” if the differences across levels of onefactor don’t depend on the level of the other factor, i.e.

• y1j· − y2j· ≈ a1 − a2 for all j = 1, . . . ,m2, and

• yi1· − yi2· ≈ b1 − b2 for all i = 1, . . . ,m1.

Adequacy can be assessed by looking differences between the sample meansfrom each cell and the fitted values of these averages under the additive model.

Page 109: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Fitted values and residuals

Fitted value:

yijk = µ+ ai + bj

= y··· + (yi·· − y···) + (y·j· − y···)

= yi·· + y·j· − y···

In this model the fitted value in one cell depends on data from the others.

Residual:

εijk = yijk − yijk

= (yijk − yi·· − y·j· + y···)

As we discussed, this model is “adequate” if the differences across levels of onefactor don’t depend on the level of the other factor, i.e.

• y1j· − y2j· ≈ a1 − a2 for all j = 1, . . . ,m2, and

• yi1· − yi2· ≈ b1 − b2 for all i = 1, . . . ,m1.

Adequacy can be assessed by looking differences between the sample meansfrom each cell and the fitted values of these averages under the additive model.

Page 110: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Fitted values and residuals

Fitted value:

yijk = µ+ ai + bj

= y··· + (yi·· − y···) + (y·j· − y···)

= yi·· + y·j· − y···

In this model the fitted value in one cell depends on data from the others.

Residual:

εijk = yijk − yijk

= (yijk − yi·· − y·j· + y···)

As we discussed, this model is “adequate” if the differences across levels of onefactor don’t depend on the level of the other factor, i.e.

• y1j· − y2j· ≈ a1 − a2 for all j = 1, . . . ,m2, and

• yi1· − yi2· ≈ b1 − b2 for all i = 1, . . . ,m1.

Adequacy can be assessed by looking differences between the sample meansfrom each cell and the fitted values of these averages under the additive model.

Page 111: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Fitted values and residuals

Fitted value:

yijk = µ+ ai + bj

= y··· + (yi·· − y···) + (y·j· − y···)

= yi·· + y·j· − y···

In this model the fitted value in one cell depends on data from the others.

Residual:

εijk = yijk − yijk

= (yijk − yi·· − y·j· + y···)

As we discussed, this model is “adequate” if the differences across levels of onefactor don’t depend on the level of the other factor, i.e.

• y1j· − y2j· ≈ a1 − a2 for all j = 1, . . . ,m2, and

• yi1· − yi2· ≈ b1 − b2 for all i = 1, . . . ,m1.

Adequacy can be assessed by looking differences between the sample meansfrom each cell and the fitted values of these averages under the additive model.

Page 112: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Fitted values and residuals

Fitted value:

yijk = µ+ ai + bj

= y··· + (yi·· − y···) + (y·j· − y···)

= yi·· + y·j· − y···

In this model the fitted value in one cell depends on data from the others.

Residual:

εijk = yijk − yijk

= (yijk − yi·· − y·j· + y···)

As we discussed, this model is “adequate” if the differences across levels of onefactor don’t depend on the level of the other factor, i.e.

• y1j· − y2j· ≈ a1 − a2 for all j = 1, . . . ,m2, and

• yi1· − yi2· ≈ b1 − b2 for all i = 1, . . . ,m1.

Adequacy can be assessed by looking differences between the sample meansfrom each cell and the fitted values of these averages under the additive model.

Page 113: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Fitted values and residuals

Fitted value:

yijk = µ+ ai + bj

= y··· + (yi·· − y···) + (y·j· − y···)

= yi·· + y·j· − y···

In this model the fitted value in one cell depends on data from the others.

Residual:

εijk = yijk − yijk

= (yijk − yi·· − y·j· + y···)

As we discussed, this model is “adequate” if the differences across levels of onefactor don’t depend on the level of the other factor, i.e.

• y1j· − y2j· ≈ a1 − a2 for all j = 1, . . . ,m2, and

• yi1· − yi2· ≈ b1 − b2 for all i = 1, . . . ,m1.

Adequacy can be assessed by looking differences between the sample meansfrom each cell and the fitted values of these averages under the additive model.

Page 114: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 115: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 116: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 117: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 118: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 119: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 120: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Evaluating interaction

yij· − (µ+ ai + bj) = yij· − yi·· − y·j· + y···

≡ ˆ(ab)ij

ˆ(ab)ij measures deviation of cell means to the estimated additive model.It is called an interaction.

• It does not measure how factor 1 “interacts” with factor 2.

• It measures how much the data deviate from the additive effects model.

Interactions and the full model: The interaction terms also can be derived bytaking the additive decomposition above one step further: The residual in theadditive model can be written:

εAijk = yijk − yi·· − y·j· + y···

= (yijk − yij·) + (yij· − yi·· − y·j· + y···)

= εIijk + ˆ(ab)ij

Page 121: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Decomposition and estimation for the interaction model

This suggests the following full model, or interaction model

yijk = µ+ ai + bj + (ab)ij + εijk

with parameter estimates obtained from the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

Fitted value:

yijk = µ+ ai + bj + ˆ(ab)ij

= yij· = µij

This is a full model for treatment means: The estimate of the mean in eachcell depends only on data from that cell. Contrast this to additive model.

Residual:

εijk = yijk − yijk

= yijk − yij·

Page 122: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Decomposition and estimation for the interaction model

This suggests the following full model, or interaction model

yijk = µ+ ai + bj + (ab)ij + εijk

with parameter estimates obtained from the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

Fitted value:

yijk = µ+ ai + bj + ˆ(ab)ij

= yij· = µij

This is a full model for treatment means: The estimate of the mean in eachcell depends only on data from that cell. Contrast this to additive model.

Residual:

εijk = yijk − yijk

= yijk − yij·

Page 123: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Decomposition and estimation for the interaction model

This suggests the following full model, or interaction model

yijk = µ+ ai + bj + (ab)ij + εijk

with parameter estimates obtained from the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

Fitted value:

yijk = µ+ ai + bj + ˆ(ab)ij

= yij· = µij

This is a full model for treatment means: The estimate of the mean in eachcell depends only on data from that cell. Contrast this to additive model.

Residual:

εijk = yijk − yijk

= yijk − yij·

Page 124: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Decomposition and estimation for the interaction model

This suggests the following full model, or interaction model

yijk = µ+ ai + bj + (ab)ij + εijk

with parameter estimates obtained from the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

Fitted value:

yijk = µ+ ai + bj + ˆ(ab)ij

= yij· = µij

This is a full model for treatment means: The estimate of the mean in eachcell depends only on data from that cell. Contrast this to additive model.

Residual:

εijk = yijk − yijk

= yijk − yij·

Page 125: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Decomposition and estimation for the interaction model

This suggests the following full model, or interaction model

yijk = µ+ ai + bj + (ab)ij + εijk

with parameter estimates obtained from the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

Fitted value:

yijk = µ+ ai + bj + ˆ(ab)ij

= yij· = µij

This is a full model for treatment means: The estimate of the mean in eachcell depends only on data from that cell. Contrast this to additive model.

Residual:

εijk = yijk − yijk

= yijk − yij·

Page 126: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Decomposition and estimation for the interaction model

This suggests the following full model, or interaction model

yijk = µ+ ai + bj + (ab)ij + εijk

with parameter estimates obtained from the following decomposition:

yijk = y··· + (yi·· − y···) + (y·j· − y···) + (yij· − yi·· − y·j· + y···) + (yijk − yij·)

= µ + ai + bj + ˆ(ab)ij + εijk

Fitted value:

yijk = µ+ ai + bj + ˆ(ab)ij

= yij· = µij

This is a full model for treatment means: The estimate of the mean in eachcell depends only on data from that cell. Contrast this to additive model.

Residual:

εijk = yijk − yijk

= yijk − yij·

Page 127: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Full model ANOVA decomposition

The full model ANOVA decomposes the variability among the cell meansy11·, y12·, . . . , ym1m2· into

• additive treatment effects ai , bj

• what is “leftover” : ˆ(ab)ij = yij· − (µ+ ai + bj)

As you might expect, these different parts are orthogonal, resulting in thefollowing orthogonal decomposition of the variance.

var explained by add model + error in add modelvar explained by full model + error in full model

Total SS = SSA + SSB + SSAB + SSE

Page 128: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Full model ANOVA decomposition

The full model ANOVA decomposes the variability among the cell meansy11·, y12·, . . . , ym1m2· into

• additive treatment effects ai , bj

• what is “leftover” : ˆ(ab)ij = yij· − (µ+ ai + bj)

As you might expect, these different parts are orthogonal, resulting in thefollowing orthogonal decomposition of the variance.

var explained by add model + error in add modelvar explained by full model + error in full model

Total SS = SSA + SSB + SSAB + SSE

Page 129: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Full model ANOVA decomposition

The full model ANOVA decomposes the variability among the cell meansy11·, y12·, . . . , ym1m2· into

• additive treatment effects ai , bj

• what is “leftover” : ˆ(ab)ij = yij· − (µ+ ai + bj)

As you might expect, these different parts are orthogonal, resulting in thefollowing orthogonal decomposition of the variance.

var explained by add model + error in add modelvar explained by full model + error in full model

Total SS = SSA + SSB + SSAB + SSE

Page 130: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Full model ANOVA decomposition

The full model ANOVA decomposes the variability among the cell meansy11·, y12·, . . . , ym1m2· into

• additive treatment effects ai , bj

• what is “leftover” : ˆ(ab)ij = yij· − (µ+ ai + bj)

As you might expect, these different parts are orthogonal, resulting in thefollowing orthogonal decomposition of the variance.

var explained by add model + error in add modelvar explained by full model + error in full model

Total SS = SSA + SSB + SSAB + SSE

Page 131: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Full model ANOVA decomposition

The full model ANOVA decomposes the variability among the cell meansy11·, y12·, . . . , ym1m2· into

• additive treatment effects ai , bj

• what is “leftover” : ˆ(ab)ij = yij· − (µ+ ai + bj)

As you might expect, these different parts are orthogonal, resulting in thefollowing orthogonal decomposition of the variance.

var explained by add model + error in add modelvar explained by full model + error in full model

Total SS = SSA + SSB + SSAB + SSE

Page 132: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

3× 4 two-factor CRD with 4 reps per treatment combination.

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 27 .982p o i s $ t y p e 2 0 .34877 0.17439 71 .708R e s i d u a l s 42 0 .10214 0.00243

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 28.3431p o i s $ t y p e 2 0 .34877 0.17439 72.6347p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904R e s i d u a l s 36 0 .08643 0.00240

So notice

• 0.10214 = 0.01571 + 0.08643, that is SSEadd = SSABint + SSEint

• 42 = 6 + 36, that is dof(SSEadd) = dof(SSABint) + dof(SSEint)

• SSA, SSB, dof(A), dof(B) are unchanged in the two models

• MSEadd ≈ MSEint , but degrees of freedom are larger in the additivemodel. Which do you think is a better estimate of the within-groupvariance?

Page 133: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

3× 4 two-factor CRD with 4 reps per treatment combination.

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 27 .982p o i s $ t y p e 2 0 .34877 0.17439 71 .708R e s i d u a l s 42 0 .10214 0.00243

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 28.3431p o i s $ t y p e 2 0 .34877 0.17439 72.6347p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904R e s i d u a l s 36 0 .08643 0.00240

So notice

• 0.10214 = 0.01571 + 0.08643, that is SSEadd = SSABint + SSEint

• 42 = 6 + 36, that is dof(SSEadd) = dof(SSABint) + dof(SSEint)

• SSA, SSB, dof(A), dof(B) are unchanged in the two models

• MSEadd ≈ MSEint , but degrees of freedom are larger in the additivemodel. Which do you think is a better estimate of the within-groupvariance?

Page 134: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

3× 4 two-factor CRD with 4 reps per treatment combination.

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 27 .982p o i s $ t y p e 2 0 .34877 0.17439 71 .708R e s i d u a l s 42 0 .10214 0.00243

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 28.3431p o i s $ t y p e 2 0 .34877 0.17439 72.6347p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904R e s i d u a l s 36 0 .08643 0.00240

So notice

• 0.10214 = 0.01571 + 0.08643, that is SSEadd = SSABint + SSEint

• 42 = 6 + 36, that is dof(SSEadd) = dof(SSABint) + dof(SSEint)

• SSA, SSB, dof(A), dof(B) are unchanged in the two models

• MSEadd ≈ MSEint , but degrees of freedom are larger in the additivemodel. Which do you think is a better estimate of the within-groupvariance?

Page 135: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

3× 4 two-factor CRD with 4 reps per treatment combination.

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 27 .982p o i s $ t y p e 2 0 .34877 0.17439 71 .708R e s i d u a l s 42 0 .10214 0.00243

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 28.3431p o i s $ t y p e 2 0 .34877 0.17439 72.6347p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904R e s i d u a l s 36 0 .08643 0.00240

So notice

• 0.10214 = 0.01571 + 0.08643, that is SSEadd = SSABint + SSEint

• 42 = 6 + 36, that is dof(SSEadd) = dof(SSABint) + dof(SSEint)

• SSA, SSB, dof(A), dof(B) are unchanged in the two models

• MSEadd ≈ MSEint , but degrees of freedom are larger in the additivemodel. Which do you think is a better estimate of the within-groupvariance?

Page 136: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

3× 4 two-factor CRD with 4 reps per treatment combination.

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 27 .982p o i s $ t y p e 2 0 .34877 0.17439 71 .708R e s i d u a l s 42 0 .10214 0.00243

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 28.3431p o i s $ t y p e 2 0 .34877 0.17439 72.6347p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904R e s i d u a l s 36 0 .08643 0.00240

So notice

• 0.10214 = 0.01571 + 0.08643, that is SSEadd = SSABint + SSEint

• 42 = 6 + 36, that is dof(SSEadd) = dof(SSABint) + dof(SSEint)

• SSA, SSB, dof(A), dof(B) are unchanged in the two models

• MSEadd ≈ MSEint , but degrees of freedom are larger in the additivemodel. Which do you think is a better estimate of the within-groupvariance?

Page 137: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

3× 4 two-factor CRD with 4 reps per treatment combination.

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 27 .982p o i s $ t y p e 2 0 .34877 0.17439 71 .708R e s i d u a l s 42 0 .10214 0.00243

Df Sum Sq Mean Sq F v a l u ep o i s $ d e l i v 3 0 .20414 0.06805 28.3431p o i s $ t y p e 2 0 .34877 0.17439 72.6347p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904R e s i d u a l s 36 0 .08643 0.00240

So notice

• 0.10214 = 0.01571 + 0.08643, that is SSEadd = SSABint + SSEint

• 42 = 6 + 36, that is dof(SSEadd) = dof(SSABint) + dof(SSEint)

• SSA, SSB, dof(A), dof(B) are unchanged in the two models

• MSEadd ≈ MSEint , but degrees of freedom are larger in the additivemodel. Which do you think is a better estimate of the within-groupvariance?

Page 138: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 139: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 140: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 141: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 142: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 143: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 144: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 145: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 146: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 147: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 148: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 149: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 150: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 151: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis testing

Expected sums of squares:• If H0 : (ab)ij = 0 is true, then

• E[MSE] = σ2

• E[MSAB] = σ2

• If H0 : (ab)ij = 0 is not true, then• E[MSE] = σ2

• E[MSAB] = σ2 + rτ2AB > σ2.

This suggests

• The additive model can be evaluated by comparing MSAB to MSE.Under H0 : (ab)ij = 0 ,

FAB = MSAB/MSE ∼ F(m1−1)×(m2−1),m1m2(n−1)

Evidence against H0 can be evaluated by computing the p-value.

• If the additive model is adequate then MSEint and MSAB are twoindependent estimates of roughly the same thing (why independent?).We may then want to combine them to improve our estimate of σ2.

Page 152: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison example

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 28.3431 1 . 3 7 6 e−09 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 72.6347 2 . 3 1 0 e−13 ∗∗∗p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904 0 .3867R e s i d u a l s 36 0 .08643 0.00240

For these data, there is strong evidence of both treatment effects, and littleevidence of non-additivity. We may want to use the additive model.

Page 153: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for additive treatment effectsSuppose we reject Ha0 : {ai} = 0 and Hb0 : {bj} = 0.

Now we want to compare means across levels of one of the factors.

0.1 0.2 0.3 0.4 0.5rate

111 111 1 1 1111 11 11

2 22 22 2 22 2 2 2222 2 2

Figure: Comparison between types I and II, without respect to delivery.

Page 154: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

In the pesticide example we had 4 reps for each of 3 levels of Poison and 4levels of Delivery, so we have 4× 4 = 16 observations for each level of Type.

The wrong approach: The two-sample t-test is

y1·· − y2··

s12

p2/(4× 4)

For the above example,

• y1·· − y2·· = 0.047

• s12 = 0.081, n ×m2 = 4× 4 = 16.

• t-statistic = -1.638, df=30, p-value=0.112.

Page 155: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

In the pesticide example we had 4 reps for each of 3 levels of Poison and 4levels of Delivery, so we have 4× 4 = 16 observations for each level of Type.

The wrong approach: The two-sample t-test is

y1·· − y2··

s12

p2/(4× 4)

For the above example,

• y1·· − y2·· = 0.047

• s12 = 0.081, n ×m2 = 4× 4 = 16.

• t-statistic = -1.638, df=30, p-value=0.112.

Page 156: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

In the pesticide example we had 4 reps for each of 3 levels of Poison and 4levels of Delivery, so we have 4× 4 = 16 observations for each level of Type.

The wrong approach: The two-sample t-test is

y1·· − y2··

s12

p2/(4× 4)

For the above example,

• y1·· − y2·· = 0.047

• s12 = 0.081, n ×m2 = 4× 4 = 16.

• t-statistic = -1.638, df=30, p-value=0.112.

Page 157: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

In the pesticide example we had 4 reps for each of 3 levels of Poison and 4levels of Delivery, so we have 4× 4 = 16 observations for each level of Type.

The wrong approach: The two-sample t-test is

y1·· − y2··

s12

p2/(4× 4)

For the above example,

• y1·· − y2·· = 0.047

• s12 = 0.081, n ×m2 = 4× 4 = 16.

• t-statistic = -1.638, df=30, p-value=0.112.

Page 158: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

In the pesticide example we had 4 reps for each of 3 levels of Poison and 4levels of Delivery, so we have 4× 4 = 16 observations for each level of Type.

The wrong approach: The two-sample t-test is

y1·· − y2··

s12

p2/(4× 4)

For the above example,

• y1·· − y2·· = 0.047

• s12 = 0.081, n ×m2 = 4× 4 = 16.

• t-statistic = -1.638, df=30, p-value=0.112.

Page 159: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

In the pesticide example we had 4 reps for each of 3 levels of Poison and 4levels of Delivery, so we have 4× 4 = 16 observations for each level of Type.

The wrong approach: The two-sample t-test is

y1·· − y2··

s12

p2/(4× 4)

For the above example,

• y1·· − y2·· = 0.047

• s12 = 0.081, n ×m2 = 4× 4 = 16.

• t-statistic = -1.638, df=30, p-value=0.112.

Page 160: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

Questions:

• What is s212 estimating?

• What should we be comparing the factor level differences to?

If Delivery is a known source of variation, we should compare differencesbetween levels of Poison type to variability within a treatment combination, i.e.σ2.

For the above example, s12 = .081, whereas sMSE =√

0.00240 ≈ 0.05, a ratioof about 1.65.

y1·· − y2··

sMSE

p2/(4× 4)

= 2.7, p-value ≈ 0.01

Page 161: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

Questions:

• What is s212 estimating?

• What should we be comparing the factor level differences to?

If Delivery is a known source of variation, we should compare differencesbetween levels of Poison type to variability within a treatment combination, i.e.σ2.

For the above example, s12 = .081, whereas sMSE =√

0.00240 ≈ 0.05, a ratioof about 1.65.

y1·· − y2··

sMSE

p2/(4× 4)

= 2.7, p-value ≈ 0.01

Page 162: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

Questions:

• What is s212 estimating?

• What should we be comparing the factor level differences to?

If Delivery is a known source of variation, we should compare differencesbetween levels of Poison type to variability within a treatment combination, i.e.σ2.

For the above example, s12 = .081, whereas sMSE =√

0.00240 ≈ 0.05, a ratioof about 1.65.

y1·· − y2··

sMSE

p2/(4× 4)

= 2.7, p-value ≈ 0.01

Page 163: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

Questions:

• What is s212 estimating?

• What should we be comparing the factor level differences to?

If Delivery is a known source of variation, we should compare differencesbetween levels of Poison type to variability within a treatment combination, i.e.σ2.

For the above example, s12 = .081, whereas sMSE =√

0.00240 ≈ 0.05, a ratioof about 1.65.

y1·· − y2··

sMSE

p2/(4× 4)

= 2.7, p-value ≈ 0.01

Page 164: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

Questions:

• What is s212 estimating?

• What should we be comparing the factor level differences to?

If Delivery is a known source of variation, we should compare differencesbetween levels of Poison type to variability within a treatment combination, i.e.σ2.

For the above example, s12 = .081, whereas sMSE =√

0.00240 ≈ 0.05, a ratioof about 1.65.

y1·· − y2··

sMSE

p2/(4× 4)

= 2.7, p-value ≈ 0.01

Page 165: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The wrong approach

Questions:

• What is s212 estimating?

• What should we be comparing the factor level differences to?

If Delivery is a known source of variation, we should compare differencesbetween levels of Poison type to variability within a treatment combination, i.e.σ2.

For the above example, s12 = .081, whereas sMSE =√

0.00240 ≈ 0.05, a ratioof about 1.65.

y1·· − y2··

sMSE

p2/(4× 4)

= 2.7, p-value ≈ 0.01

Page 166: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Poison data

0.1 0.2 0.3 0.4 0.5rate

111 111 1 1 1111 1111

2 22 22 2 22 2 2 2222 2 2

Figure: Comparison between types I and II, with delivery in color.

Page 167: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

Let µij be the population mean in cell ij . The relationship between the cellmeans model and the parameters in the interaction model are as follows:

µij = µ·· + (µi· − µ··) + (µ·j − µ··) + (µij − µi· − µj· + µ··)

= µ+ ai + bj + (ab)ij

and so

•P

i ai = 0

•P

j bj = 0

•P

i (ab)ij = 0 for each j ,P

j(ab)ij = 0 for each i

Page 168: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

Let µij be the population mean in cell ij . The relationship between the cellmeans model and the parameters in the interaction model are as follows:

µij = µ·· + (µi· − µ··) + (µ·j − µ··) + (µij − µi· − µj· + µ··)

= µ+ ai + bj + (ab)ij

and so

•P

i ai = 0

•P

j bj = 0

•P

i (ab)ij = 0 for each j ,P

j(ab)ij = 0 for each i

Page 169: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

Let µij be the population mean in cell ij . The relationship between the cellmeans model and the parameters in the interaction model are as follows:

µij = µ·· + (µi· − µ··) + (µ·j − µ··) + (µij − µi· − µj· + µ··)

= µ+ ai + bj + (ab)ij

and so

•P

i ai = 0

•P

j bj = 0

•P

i (ab)ij = 0 for each j ,P

j(ab)ij = 0 for each i

Page 170: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

Let µij be the population mean in cell ij . The relationship between the cellmeans model and the parameters in the interaction model are as follows:

µij = µ·· + (µi· − µ··) + (µ·j − µ··) + (µij − µi· − µj· + µ··)

= µ+ ai + bj + (ab)ij

and so

•P

i ai = 0

•P

j bj = 0

•P

i (ab)ij = 0 for each j ,P

j(ab)ij = 0 for each i

Page 171: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effectsSuppose we are interested in the difference between F1 = 1 and F1 = 2. Withthe above representation we can show that

1

m2

Xj

µ1j −1

m2

Xj

µ2j =1

m2

Xj

(µ1j − µ2j)

=1

m2

Xj

([µ+ a1 + bj + (ab)1j ]− [µ+ a2 + bj + (ab)2j ])

=1

m2

Xj

(a1 − a2) +X

j

(ab)1j −X

j

(ab)2j

!= a1 − a2

and so the “effect of F1 = 1 versus F1 = 2” = a1 − a2 can be viewed as acontrast of cell means.

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 µ11 µ12 µ13 µ14 4µ1·

F1 = 2 µ21 µ22 µ23 µ24 4µ2·

F1 = 3 µ31 µ32 µ33 µ34 4µ3·

3µ·1 3µ·2 3µ·3 3µ·4 12µ··

Page 172: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effectsSuppose we are interested in the difference between F1 = 1 and F1 = 2. Withthe above representation we can show that

1

m2

Xj

µ1j −1

m2

Xj

µ2j =1

m2

Xj

(µ1j − µ2j)

=1

m2

Xj

([µ+ a1 + bj + (ab)1j ]− [µ+ a2 + bj + (ab)2j ])

=1

m2

Xj

(a1 − a2) +X

j

(ab)1j −X

j

(ab)2j

!= a1 − a2

and so the “effect of F1 = 1 versus F1 = 2” = a1 − a2 can be viewed as acontrast of cell means.

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 µ11 µ12 µ13 µ14 4µ1·

F1 = 2 µ21 µ22 µ23 µ24 4µ2·

F1 = 3 µ31 µ32 µ33 µ34 4µ3·

3µ·1 3µ·2 3µ·3 3µ·4 12µ··

Page 173: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effectsSuppose we are interested in the difference between F1 = 1 and F1 = 2. Withthe above representation we can show that

1

m2

Xj

µ1j −1

m2

Xj

µ2j =1

m2

Xj

(µ1j − µ2j)

=1

m2

Xj

([µ+ a1 + bj + (ab)1j ]− [µ+ a2 + bj + (ab)2j ])

=1

m2

Xj

(a1 − a2) +X

j

(ab)1j −X

j

(ab)2j

!= a1 − a2

and so the “effect of F1 = 1 versus F1 = 2” = a1 − a2 can be viewed as acontrast of cell means.

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 µ11 µ12 µ13 µ14 4µ1·

F1 = 2 µ21 µ22 µ23 µ24 4µ2·

F1 = 3 µ31 µ32 µ33 µ34 4µ3·

3µ·1 3µ·2 3µ·3 3µ·4 12µ··

Page 174: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effectsSuppose we are interested in the difference between F1 = 1 and F1 = 2. Withthe above representation we can show that

1

m2

Xj

µ1j −1

m2

Xj

µ2j =1

m2

Xj

(µ1j − µ2j)

=1

m2

Xj

([µ+ a1 + bj + (ab)1j ]− [µ+ a2 + bj + (ab)2j ])

=1

m2

Xj

(a1 − a2) +X

j

(ab)1j −X

j

(ab)2j

!

= a1 − a2

and so the “effect of F1 = 1 versus F1 = 2” = a1 − a2 can be viewed as acontrast of cell means.

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 µ11 µ12 µ13 µ14 4µ1·

F1 = 2 µ21 µ22 µ23 µ24 4µ2·

F1 = 3 µ31 µ32 µ33 µ34 4µ3·

3µ·1 3µ·2 3µ·3 3µ·4 12µ··

Page 175: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effectsSuppose we are interested in the difference between F1 = 1 and F1 = 2. Withthe above representation we can show that

1

m2

Xj

µ1j −1

m2

Xj

µ2j =1

m2

Xj

(µ1j − µ2j)

=1

m2

Xj

([µ+ a1 + bj + (ab)1j ]− [µ+ a2 + bj + (ab)2j ])

=1

m2

Xj

(a1 − a2) +X

j

(ab)1j −X

j

(ab)2j

!= a1 − a2

and so the “effect of F1 = 1 versus F1 = 2” = a1 − a2 can be viewed as acontrast of cell means.

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 µ11 µ12 µ13 µ14 4µ1·

F1 = 2 µ21 µ22 µ23 µ24 4µ2·

F1 = 3 µ31 µ32 µ33 µ34 4µ3·

3µ·1 3µ·2 3µ·3 3µ·4 12µ··

Page 176: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effectsSuppose we are interested in the difference between F1 = 1 and F1 = 2. Withthe above representation we can show that

1

m2

Xj

µ1j −1

m2

Xj

µ2j =1

m2

Xj

(µ1j − µ2j)

=1

m2

Xj

([µ+ a1 + bj + (ab)1j ]− [µ+ a2 + bj + (ab)2j ])

=1

m2

Xj

(a1 − a2) +X

j

(ab)1j −X

j

(ab)2j

!= a1 − a2

and so the “effect of F1 = 1 versus F1 = 2” = a1 − a2 can be viewed as acontrast of cell means.

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 µ11 µ12 µ13 µ14 4µ1·

F1 = 2 µ21 µ22 µ23 µ24 4µ2·

F1 = 3 µ31 µ32 µ33 µ34 4µ3·

3µ·1 3µ·2 3µ·3 3µ·4 12µ··

Page 177: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

a1 − a2 = µ1· − µ2·

= (µ11 + µ12 + µ13 + µ14)/4− (µ21 + µ22 + µ23 + µ24)/4

Like any contrast, we can estimate/make inference for it using contrasts ofsample means:

a1 − a2 = a1 − a2 = y1·· − y2·· is an unbiased estimate of a1 − a2

Note that this estimate is the corresponding sample contrast among them1 ×m2 sample means:

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 y11· y12· y13· y14· 4y1··

F1 = 2 y21· y22· y23· y24· 4y2··

F1 = 3 y31· y32· y33· y34· 4y3··

3y·1· 3y·2· 3y·3· 3y·4· 12y···

a1 − a2 = y1·· − y2··

= (y11· + y12· + y13· + y14·)/4− (y21· + y22· + y23· + y24·)/4

Page 178: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

a1 − a2 = µ1· − µ2·

= (µ11 + µ12 + µ13 + µ14)/4− (µ21 + µ22 + µ23 + µ24)/4

Like any contrast, we can estimate/make inference for it using contrasts ofsample means:

a1 − a2 = a1 − a2 = y1·· − y2·· is an unbiased estimate of a1 − a2

Note that this estimate is the corresponding sample contrast among them1 ×m2 sample means:

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 y11· y12· y13· y14· 4y1··

F1 = 2 y21· y22· y23· y24· 4y2··

F1 = 3 y31· y32· y33· y34· 4y3··

3y·1· 3y·2· 3y·3· 3y·4· 12y···

a1 − a2 = y1·· − y2··

= (y11· + y12· + y13· + y14·)/4− (y21· + y22· + y23· + y24·)/4

Page 179: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

a1 − a2 = µ1· − µ2·

= (µ11 + µ12 + µ13 + µ14)/4− (µ21 + µ22 + µ23 + µ24)/4

Like any contrast, we can estimate/make inference for it using contrasts ofsample means:

a1 − a2 = a1 − a2 = y1·· − y2·· is an unbiased estimate of a1 − a2

Note that this estimate is the corresponding sample contrast among them1 ×m2 sample means:

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 y11· y12· y13· y14· 4y1··

F1 = 2 y21· y22· y23· y24· 4y2··

F1 = 3 y31· y32· y33· y34· 4y3··

3y·1· 3y·2· 3y·3· 3y·4· 12y···

a1 − a2 = y1·· − y2··

= (y11· + y12· + y13· + y14·)/4− (y21· + y22· + y23· + y24·)/4

Page 180: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

a1 − a2 = µ1· − µ2·

= (µ11 + µ12 + µ13 + µ14)/4− (µ21 + µ22 + µ23 + µ24)/4

Like any contrast, we can estimate/make inference for it using contrasts ofsample means:

a1 − a2 = a1 − a2 = y1·· − y2·· is an unbiased estimate of a1 − a2

Note that this estimate is the corresponding sample contrast among them1 ×m2 sample means:

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 y11· y12· y13· y14· 4y1··

F1 = 2 y21· y22· y23· y24· 4y2··

F1 = 3 y31· y32· y33· y34· 4y3··

3y·1· 3y·2· 3y·3· 3y·4· 12y···

a1 − a2 = y1·· − y2··

= (y11· + y12· + y13· + y14·)/4− (y21· + y22· + y23· + y24·)/4

Page 181: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Testing additive effects

a1 − a2 = µ1· − µ2·

= (µ11 + µ12 + µ13 + µ14)/4− (µ21 + µ22 + µ23 + µ24)/4

Like any contrast, we can estimate/make inference for it using contrasts ofsample means:

a1 − a2 = a1 − a2 = y1·· − y2·· is an unbiased estimate of a1 − a2

Note that this estimate is the corresponding sample contrast among them1 ×m2 sample means:

F2 = 1 F2 = 2 F2 = 3 F2 = 4

F1 = 1 y11· y12· y13· y14· 4y1··

F1 = 2 y21· y22· y23· y24· 4y2··

F1 = 3 y31· y32· y33· y34· 4y3··

3y·1· 3y·2· 3y·3· 3y·4· 12y···

a1 − a2 = y1·· − y2··

= (y11· + y12· + y13· + y14·)/4− (y21· + y22· + y23· + y24·)/4

Page 182: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 183: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 184: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 185: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 186: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 187: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 188: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 189: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 190: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 191: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 192: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 193: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Hypothesis tests and confidence intervals

E[a1 − a2] = a1 − a2

Under the assumption of constant variance:

Var[a1 − a2] = Var[y1·· − y2··]

= Var[y1··] + Var[y2··]

= σ2/(n ×m2) + σ2/(n ×m2)

= 2σ2/(n ×m2)

Under the assumption that the data are normally distributed

a1 − a2 ∼ normal(a1 − a2, σp

2/(n ×m2))

and is independent of MSE (why?) So

(a1 − a2)− (a1 − a2)qMSE 2

n×m2

=(a1 − a2)− (a1 − a2)

SE[a1 − a2]∼ tν

ν is the dof for our estimate of σ2 = the residual degrees of freedom in ourmodel.

• ν = m1m2(n − 1) under the full/interaction model

• ν = m1m2(n − 1) + (m1 − 1)(m2 − 1) under the reduced/additive model

Page 194: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

t-test

Reject H0 : a1 = a2 if

a1 − a2qMSE 2

n×m2

> t1−αC/2,ν

|a1 − a2| >

rMSE

2

n ×m2× t1−αC/2,ν

So the quantity

LSD1 = t1−αC/2,ν × SE(α1 − α2)

= t1−αC/2,ν ×r

MSE2

n ×m2

is a “yardstick” for comparing levels of factor 1.It is called the least significant difference for comparing levels of Factor 1.

Page 195: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

t-test

Reject H0 : a1 = a2 if

a1 − a2qMSE 2

n×m2

> t1−αC/2,ν

|a1 − a2| >

rMSE

2

n ×m2× t1−αC/2,ν

So the quantity

LSD1 = t1−αC/2,ν × SE(α1 − α2)

= t1−αC/2,ν ×r

MSE2

n ×m2

is a “yardstick” for comparing levels of factor 1.It is called the least significant difference for comparing levels of Factor 1.

Page 196: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

t-test

Reject H0 : a1 = a2 if

a1 − a2qMSE 2

n×m2

> t1−αC/2,ν

|a1 − a2| >

rMSE

2

n ×m2× t1−αC/2,ν

So the quantity

LSD1 = t1−αC/2,ν × SE(α1 − α2)

= t1−αC/2,ν ×r

MSE2

n ×m2

is a “yardstick” for comparing levels of factor 1.It is called the least significant difference for comparing levels of Factor 1.

Page 197: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

t-test

Reject H0 : a1 = a2 if

a1 − a2qMSE 2

n×m2

> t1−αC/2,ν

|a1 − a2| >

rMSE

2

n ×m2× t1−αC/2,ν

So the quantity

LSD1 = t1−αC/2,ν × SE(α1 − α2)

= t1−αC/2,ν ×r

MSE2

n ×m2

is a “yardstick” for comparing levels of factor 1.It is called the least significant difference for comparing levels of Factor 1.

Page 198: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

LSD

Important note: The LSD depends on which factor you are looking at.The comparison of levels of Factor 2 depends on

Var[y·1· − y·2·] = Var[y·1·] + Var[y·2·]

= σ2/(n ×m1) + σ2/(n ×m1)

= 2σ2/(n ×m1)

So the LSD for factor 2 differences is

LSD2 = t1−αC/2,ν ×r

MSE2

n ×m1

Page 199: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

LSD

Important note: The LSD depends on which factor you are looking at.The comparison of levels of Factor 2 depends on

Var[y·1· − y·2·] = Var[y·1·] + Var[y·2·]

= σ2/(n ×m1) + σ2/(n ×m1)

= 2σ2/(n ×m1)

So the LSD for factor 2 differences is

LSD2 = t1−αC/2,ν ×r

MSE2

n ×m1

Page 200: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

LSD

Important note: The LSD depends on which factor you are looking at.The comparison of levels of Factor 2 depends on

Var[y·1· − y·2·] = Var[y·1·] + Var[y·2·]

= σ2/(n ×m1) + σ2/(n ×m1)

= 2σ2/(n ×m1)

So the LSD for factor 2 differences is

LSD2 = t1−αC/2,ν ×r

MSE2

n ×m1

Page 201: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

LSD

Important note: The LSD depends on which factor you are looking at.The comparison of levels of Factor 2 depends on

Var[y·1· − y·2·] = Var[y·1·] + Var[y·2·]

= σ2/(n ×m1) + σ2/(n ×m1)

= 2σ2/(n ×m1)

So the LSD for factor 2 differences is

LSD2 = t1−αC/2,ν ×r

MSE2

n ×m1

Page 202: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

LSD

Important note: The LSD depends on which factor you are looking at.The comparison of levels of Factor 2 depends on

Var[y·1· − y·2·] = Var[y·1·] + Var[y·2·]

= σ2/(n ×m1) + σ2/(n ×m1)

= 2σ2/(n ×m1)

So the LSD for factor 2 differences is

LSD2 = t1−αC/2,ν ×r

MSE2

n ×m1

Page 203: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Back to the example

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 28.3431 1 . 3 7 6 e−09 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 72.6347 2 . 3 1 0 e−13 ∗∗∗p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904 0 .3867R e s i d u a l s 36 0 .08643 0.00240

There is not very much evidence that the effects are not additive. Let’s assumethere is no interaction term. If we are correct then we will have increased theprecision of our variance estimate.

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 27 .982 4 . 1 9 2 e−10 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 71 .708 2 . 8 6 5 e−14 ∗∗∗R e s i d u a l s 42 0 .10214 0.00243

So there is strong evidence against the hypothesis that the additive effects arezero for either factor. Which levels of a factor are different from each other?

Page 204: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Back to the example

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 28.3431 1 . 3 7 6 e−09 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 72.6347 2 . 3 1 0 e−13 ∗∗∗p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904 0 .3867R e s i d u a l s 36 0 .08643 0.00240

There is not very much evidence that the effects are not additive. Let’s assumethere is no interaction term. If we are correct then we will have increased theprecision of our variance estimate.

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 27 .982 4 . 1 9 2 e−10 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 71 .708 2 . 8 6 5 e−14 ∗∗∗R e s i d u a l s 42 0 .10214 0.00243

So there is strong evidence against the hypothesis that the additive effects arezero for either factor. Which levels of a factor are different from each other?

Page 205: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Back to the example

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 28.3431 1 . 3 7 6 e−09 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 72.6347 2 . 3 1 0 e−13 ∗∗∗p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904 0 .3867R e s i d u a l s 36 0 .08643 0.00240

There is not very much evidence that the effects are not additive. Let’s assumethere is no interaction term. If we are correct then we will have increased theprecision of our variance estimate.

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 27 .982 4 . 1 9 2 e−10 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 71 .708 2 . 8 6 5 e−14 ∗∗∗R e s i d u a l s 42 0 .10214 0.00243

So there is strong evidence against the hypothesis that the additive effects arezero for either factor. Which levels of a factor are different from each other?

Page 206: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Back to the example

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 28.3431 1 . 3 7 6 e−09 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 72.6347 2 . 3 1 0 e−13 ∗∗∗p o i s $ d e l i v : p o i s $ t y p e 6 0 .01571 0.00262 1 .0904 0 .3867R e s i d u a l s 36 0 .08643 0.00240

There is not very much evidence that the effects are not additive. Let’s assumethere is no interaction term. If we are correct then we will have increased theprecision of our variance estimate.

Df Sum Sq Mean Sq F v a l u e Pr(>F )p o i s $ d e l i v 3 0 .20414 0.06805 27 .982 4 . 1 9 2 e−10 ∗∗∗p o i s $ t y p e 2 0 .34877 0.17439 71 .708 2 . 8 6 5 e−14 ∗∗∗R e s i d u a l s 42 0 .10214 0.00243

So there is strong evidence against the hypothesis that the additive effects arezero for either factor. Which levels of a factor are different from each other?

Page 207: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The additive model is analogous to marginal plots

I II III

0.1

0.2

0.3

0.4

0.5

A B C D0.

10.

20.

30.

40.

5

Page 208: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison type: At αC = 0.05,

LSDtype = t.975,42 × SE[a1 − a2]

= 2.018×r.0024

2

4× 4= 2.018× 0.0173 = 0.035

Type Mean LSD GroupingI 0.18 1II 0.23 2III 0.38 3

Page 209: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison type: At αC = 0.05,

LSDtype = t.975,42 × SE[a1 − a2]

= 2.018×r.0024

2

4× 4= 2.018× 0.0173 = 0.035

Type Mean LSD GroupingI 0.18 1II 0.23 2III 0.38 3

Page 210: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison type: At αC = 0.05,

LSDtype = t.975,42 × SE[a1 − a2]

= 2.018×r.0024

2

4× 4

= 2.018× 0.0173 = 0.035

Type Mean LSD GroupingI 0.18 1II 0.23 2III 0.38 3

Page 211: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison type: At αC = 0.05,

LSDtype = t.975,42 × SE[a1 − a2]

= 2.018×r.0024

2

4× 4= 2.018× 0.0173 = 0.035

Type Mean LSD GroupingI 0.18 1II 0.23 2III 0.38 3

Page 212: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison type: At αC = 0.05,

LSDtype = t.975,42 × SE[a1 − a2]

= 2.018×r.0024

2

4× 4= 2.018× 0.0173 = 0.035

Type Mean LSD GroupingI 0.18 1II 0.23 2III 0.38 3

Page 213: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison delivery: At αC = 0.05,

LSDtype = t.975,42 × SE[b1 − b2]

= 2.018×r.0024

2

4× 3= 2.018× 0.02 = 0.040

Type Mean LSD GroupingB 0.19 1D 0.21 1C 0.29 2A 0.35 3

Note the differences between these comparisons and from two-sample t-tests.

Page 214: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison delivery: At αC = 0.05,

LSDtype = t.975,42 × SE[b1 − b2]

= 2.018×r.0024

2

4× 3= 2.018× 0.02 = 0.040

Type Mean LSD GroupingB 0.19 1D 0.21 1C 0.29 2A 0.35 3

Note the differences between these comparisons and from two-sample t-tests.

Page 215: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison delivery: At αC = 0.05,

LSDtype = t.975,42 × SE[b1 − b2]

= 2.018×r.0024

2

4× 3

= 2.018× 0.02 = 0.040

Type Mean LSD GroupingB 0.19 1D 0.21 1C 0.29 2A 0.35 3

Note the differences between these comparisons and from two-sample t-tests.

Page 216: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison delivery: At αC = 0.05,

LSDtype = t.975,42 × SE[b1 − b2]

= 2.018×r.0024

2

4× 3= 2.018× 0.02 = 0.040

Type Mean LSD GroupingB 0.19 1D 0.21 1C 0.29 2A 0.35 3

Note the differences between these comparisons and from two-sample t-tests.

Page 217: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Treatment comparisons

effects of poison delivery: At αC = 0.05,

LSDtype = t.975,42 × SE[b1 − b2]

= 2.018×r.0024

2

4× 3= 2.018× 0.02 = 0.040

Type Mean LSD GroupingB 0.19 1D 0.21 1C 0.29 2A 0.35 3

Note the differences between these comparisons and from two-sample t-tests.

Page 218: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 219: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 220: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 221: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 222: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 223: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 224: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 225: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 226: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

If additive model is clearly wrong, do additive effects make sense?The full model is

yijk = µij + εijk

A reparameterization of this model is the interaction model:

yijk = µ+ ai + bj + (ab)ij + εijk

where

• µ = 1m1m2

Pi

Pj µij = µ··

• ai = 1m2

Pj(µij − µ··) = µi· − µ··

• bj = 1m1

Pi (µij − µ··) = µ·j − µ··

• (ab)ij = µij − µi· − µ·j + µ·· = µij − (µ+ ai + bj)

The terms {a1, . . . , am1} , {b1, . . . , bm2} are sometimes called “main effects”.

Page 227: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔

µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 228: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔

µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 229: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔

µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 230: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔

µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 231: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔

µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 232: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 233: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

The additive model isyijk = µ+ ai + bj + εijk

Sometimes this is called the “main effects” model.If this model is correct, it implies that

(ab)ij = 0 ∀i , j ⇔µi1j − µi2j = ai1 − ai2 ∀i1, i2, j ⇔µij1 − µij2 = bj1 − bj2 ∀i , j1, j2

What are the estimated additive effects estimating, in either case?

Page 234: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 235: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 236: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 237: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 238: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 239: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 240: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpretation of estimated additive effects

a1 − a2 = (y1·· − y···)− (y2·· − y···)

= y1·· − y2··

=1

m2

m2Xj=1

y1j· −1

m2

m2Xj=1

y2j·

=1

m2

m2Xj=1

(y1j· − y2j·)

Now

E [1

m2

m2Xj=1

(y1j· − y2j·)] =1

m2

m2Xj=1

(µ1j − µ2j) = a1 − a2,

so a1 − a2 is estimating a1 − a2 regardless if additivity is correct or not.Now, how do we interpret this effect?

Page 241: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpreting estimated additive effects

• Regardless of additivity, a1 − a2 can be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2,averaged over the experimental levels of factor 2.

• If additivity is correct, a1 − a2 can further be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2, forevery level of factor 2 in the experiment.

Statistical folklore suggests that if there is significant non-additivity, then youcan’t interpret main/additive effects.

As we can see, this is not true: the additive effects have a very definiteinterpretation under the full model.

In some cases (block designs, coming up), we may be interested in additiveeffects even if there is significant interaction.

Page 242: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpreting estimated additive effects

• Regardless of additivity, a1 − a2 can be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2,averaged over the experimental levels of factor 2.

• If additivity is correct, a1 − a2 can further be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2, forevery level of factor 2 in the experiment.

Statistical folklore suggests that if there is significant non-additivity, then youcan’t interpret main/additive effects.

As we can see, this is not true: the additive effects have a very definiteinterpretation under the full model.

In some cases (block designs, coming up), we may be interested in additiveeffects even if there is significant interaction.

Page 243: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpreting estimated additive effects

• Regardless of additivity, a1 − a2 can be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2,averaged over the experimental levels of factor 2.

• If additivity is correct, a1 − a2 can further be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2, forevery level of factor 2 in the experiment.

Statistical folklore suggests that if there is significant non-additivity, then youcan’t interpret main/additive effects.

As we can see, this is not true: the additive effects have a very definiteinterpretation under the full model.

In some cases (block designs, coming up), we may be interested in additiveeffects even if there is significant interaction.

Page 244: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpreting estimated additive effects

• Regardless of additivity, a1 − a2 can be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2,averaged over the experimental levels of factor 2.

• If additivity is correct, a1 − a2 can further be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2, forevery level of factor 2 in the experiment.

Statistical folklore suggests that if there is significant non-additivity, then youcan’t interpret main/additive effects.

As we can see, this is not true: the additive effects have a very definiteinterpretation under the full model.

In some cases (block designs, coming up), we may be interested in additiveeffects even if there is significant interaction.

Page 245: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interpreting estimated additive effects

• Regardless of additivity, a1 − a2 can be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2,averaged over the experimental levels of factor 2.

• If additivity is correct, a1 − a2 can further be interpreted as the estimateddifference in response between having factor 1 =1 and factor 1=2, forevery level of factor 2 in the experiment.

Statistical folklore suggests that if there is significant non-additivity, then youcan’t interpret main/additive effects.

As we can see, this is not true: the additive effects have a very definiteinterpretation under the full model.

In some cases (block designs, coming up), we may be interested in additiveeffects even if there is significant interaction.

Page 246: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting the interaction

Sometimes if there is an interaction, we might want to go in and compareindividual cell means.Consider the following table of means from a 2× 3 two-factor ANOVA.

y11· y12· y13· y14·

y21· y22· y23· y24·

A large interaction SS in the ANOVA table gives us evidence, for example, thatµ1j − µ2j varies across levels j of factor 2.

It may be useful to dissect this variability further, and understand how thenon-additivity is manifested in the data

Page 247: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting the interaction

Sometimes if there is an interaction, we might want to go in and compareindividual cell means.Consider the following table of means from a 2× 3 two-factor ANOVA.

y11· y12· y13· y14·

y21· y22· y23· y24·

A large interaction SS in the ANOVA table gives us evidence, for example, thatµ1j − µ2j varies across levels j of factor 2.

It may be useful to dissect this variability further, and understand how thenon-additivity is manifested in the data

Page 248: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting the interaction

Sometimes if there is an interaction, we might want to go in and compareindividual cell means.Consider the following table of means from a 2× 3 two-factor ANOVA.

y11· y12· y13· y14·

y21· y22· y23· y24·

A large interaction SS in the ANOVA table gives us evidence, for example, thatµ1j − µ2j varies across levels j of factor 2.

It may be useful to dissect this variability further, and understand how thenon-additivity is manifested in the data

Page 249: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting the interaction

Sometimes if there is an interaction, we might want to go in and compareindividual cell means.Consider the following table of means from a 2× 3 two-factor ANOVA.

y11· y12· y13· y14·

y21· y22· y23· y24·

A large interaction SS in the ANOVA table gives us evidence, for example, thatµ1j − µ2j varies across levels j of factor 2.

It may be useful to dissect this variability further, and understand how thenon-additivity is manifested in the data

Page 250: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting the interaction

Sometimes if there is an interaction, we might want to go in and compareindividual cell means.Consider the following table of means from a 2× 3 two-factor ANOVA.

y11· y12· y13· y14·

y21· y22· y23· y24·

A large interaction SS in the ANOVA table gives us evidence, for example, thatµ1j − µ2j varies across levels j of factor 2.

It may be useful to dissect this variability further, and understand how thenon-additivity is manifested in the data

Page 251: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Different patterns of interaction

1.1 2.1 1.2 2.2 1.3 2.3 1.4 2.4

24

68

1.1 2.1 1.2 2.2 1.3 2.3 1.4 2.4

34

56

7

1.1 2.1 1.2 2.2 1.3 2.3 1.4 2.4

23

45

67

8

Page 252: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 253: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 254: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 255: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 256: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 257: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 258: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 259: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Dissecting interaction

All three datasets give a large interaction SS, but imply very different thingsabout the effects of the factors.

Contrasts for examining interactions: Suppose we want to compare theeffect of (factor 1=1) to (factor 1=2) across levels of factor 2. This involvescontrasts of the form:

C = (µ1j − µ2j)− (µ1k − µ2k)

This contrast can be estimated with the sample contrast:

C = (y1j· − y2j·)− (y1k· − y2k·)

The standard error of this contrast is the estimate of its standard deviation:

Var[C ] = σ2/n + σ2/n + σ2/n + σ2/n = 4σ2/n

SE[C ] = 2p

MSE/n

Confidence intervals and t-tests for C can be made in the usual way.

Page 260: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Randomized complete block designs

Recall our first design:

CRD: to assess effects of a single factor F1 on response y we randomly allocatelevels of F1 to experimental units.

Typically, one hopes the e.u.’s are homogeneous or nearly so:

• scientifically: If the units are nearly homogeneous, then any observedvariability in response can be attributed to variability in factor levels.

• statistically: If the units are nearly homogeneous, then MSE will be small,confidence intervals will be precise and hypothesis tests powerful.

But what if the e.u.’s are not homogeneous?

Page 261: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Randomized complete block designs

Recall our first design:

CRD: to assess effects of a single factor F1 on response y we randomly allocatelevels of F1 to experimental units.

Typically, one hopes the e.u.’s are homogeneous or nearly so:

• scientifically: If the units are nearly homogeneous, then any observedvariability in response can be attributed to variability in factor levels.

• statistically: If the units are nearly homogeneous, then MSE will be small,confidence intervals will be precise and hypothesis tests powerful.

But what if the e.u.’s are not homogeneous?

Page 262: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Randomized complete block designs

Recall our first design:

CRD: to assess effects of a single factor F1 on response y we randomly allocatelevels of F1 to experimental units.

Typically, one hopes the e.u.’s are homogeneous or nearly so:

• scientifically: If the units are nearly homogeneous, then any observedvariability in response can be attributed to variability in factor levels.

• statistically: If the units are nearly homogeneous, then MSE will be small,confidence intervals will be precise and hypothesis tests powerful.

But what if the e.u.’s are not homogeneous?

Page 263: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Randomized complete block designs

Recall our first design:

CRD: to assess effects of a single factor F1 on response y we randomly allocatelevels of F1 to experimental units.

Typically, one hopes the e.u.’s are homogeneous or nearly so:

• scientifically: If the units are nearly homogeneous, then any observedvariability in response can be attributed to variability in factor levels.

• statistically: If the units are nearly homogeneous, then MSE will be small,confidence intervals will be precise and hypothesis tests powerful.

But what if the e.u.’s are not homogeneous?

Page 264: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Randomized complete block designs

Recall our first design:

CRD: to assess effects of a single factor F1 on response y we randomly allocatelevels of F1 to experimental units.

Typically, one hopes the e.u.’s are homogeneous or nearly so:

• scientifically: If the units are nearly homogeneous, then any observedvariability in response can be attributed to variability in factor levels.

• statistically: If the units are nearly homogeneous, then MSE will be small,confidence intervals will be precise and hypothesis tests powerful.

But what if the e.u.’s are not homogeneous?

Page 265: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 266: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 267: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 268: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 269: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 270: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 271: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Nuisance factors

Example: Let F2 be a factor that is a large source of variation/heterogeneity,but is not recorded (age of animals in experiment, gender, field plotconditions, soil conditions).

ANOVASource SS MS F-ratio

F1 SS1 MS1 =SS1/(m1 − 1) MS1/MSE(F2+Error) SS2+SSE (SS2+SSE)/N −m1

If SS2 is large, F-stat for F1 may be small.

If a factor

1. affects response

2. varies across experimental units

then it will increase the variance in response and also the experimental errorvariance/MSE if unaccounted for.

Page 272: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 273: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 274: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 275: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 276: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 277: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 278: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 279: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking

If F2 is a known, potentially large source of variation, we can control for itpre-experimentally with a block design.

Blocking: The stratification of experimental units into groups that aremore homogeneous than the whole.

Objective: To have less variation among units within blocks than betweenblocks.

Typical blocking criteria:

• location

• physical characteristics

• time

Page 280: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Nitrogen fertilizer timing):

How does the timing of nitrogen additive affect nitrogen uptake?

• Treatment: Six different timing schedules 1, . . . , 6: Level 4 is “standard”

• Response: Nitrogen uptake (ppm×10−2 )

• Experimental material: One irrigated field

Soil moisture is thought to be a source of variation in response.

Page 281: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Nitrogen fertilizer timing):

How does the timing of nitrogen additive affect nitrogen uptake?

• Treatment: Six different timing schedules 1, . . . , 6: Level 4 is “standard”

• Response: Nitrogen uptake (ppm×10−2 )

• Experimental material: One irrigated field

Soil moisture is thought to be a source of variation in response.

Page 282: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Nitrogen fertilizer timing):

How does the timing of nitrogen additive affect nitrogen uptake?

• Treatment: Six different timing schedules 1, . . . , 6: Level 4 is “standard”

• Response: Nitrogen uptake (ppm×10−2 )

• Experimental material: One irrigated field

Soil moisture is thought to be a source of variation in response.

Page 283: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Nitrogen fertilizer timing):

How does the timing of nitrogen additive affect nitrogen uptake?

• Treatment: Six different timing schedules 1, . . . , 6: Level 4 is “standard”

• Response: Nitrogen uptake (ppm×10−2 )

• Experimental material: One irrigated field

Soil moisture is thought to be a source of variation in response.

Page 284: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Nitrogen fertilizer timing):

How does the timing of nitrogen additive affect nitrogen uptake?

• Treatment: Six different timing schedules 1, . . . , 6: Level 4 is “standard”

• Response: Nitrogen uptake (ppm×10−2 )

• Experimental material: One irrigated field

Soil moisture is thought to be a source of variation in response.

Page 285: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Experimental material in need of blocking

wet

dry

−−−−−−−−−−−−−− irrigation −−−−−−−−−−−−−−

Page 286: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Design and results

Design:

1. Field is divided into a 4× 6 grid.

2. Within each row or block, each of the 6 treatments are randomlyallocated.

column

row

1 2 3 4 5 6

43

21

40.892

37.995

37.184

34.981

34.896

42.073

41.221

49.423

45.854

50.156

41.995

46.692

44.576

52.683

37.615

36.941

46.652

40.234

41.92

39.24

43.296

40.455

42.913

39.971

treatment and data versus location

Page 287: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 288: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 289: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 290: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 291: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 292: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 293: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

The RCBD

1. The experimental units are blocked into presumably homogeneous groups.

2. The blocks are complete, in that each treatment appears in each block.

3. The blocks are balanced, in that there are• m1 = 6 observations for each level of block• m2 = 4 observations for each level of trt• n = 1 observation for each trt×block combination.

This design is a balanced randomized complete block design.

Page 294: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Exploratory plots

1 2 3 4 5 6

3540

4550

treatment

Ni

1 2 3 4

3540

4550

row

Ni

column

row

1 2 3 4 5 6

43

21

−3.142

−1.525

−3.444

−3.31

−8.336

−4.73

2.941

2.653

5.244

6.926

2.485

2.662

1.346

5.913

−1.95

−1.341

2.622

−0.394

−2.132

−1.414

0.066

0.945

−3.863

1.691

treatment and residual versus location

Page 295: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Analysis of the RCB design with one rep:

Analysis proceeds just as in the two-factor ANOVA:

yij − y·· = (yi· − y··) + (y·j − y··) + (yij − yi· − y·j + y··)SSTotal = SSTrt + SSB + SSE

ANOVA tableSource SS dof MS F-ratio

Trt SST m1 − 1 SST/(m1 − 1) MST/MSEBlock SSB m2 − 1 SSB/(m2 − 1) (MSB/MSE)Error SSE (m1 − 1)(m2 − 1) SSE/(m1 − 1)(m2 − 1)Total SSTotal m1m2 − 1

Page 296: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Analysis of the RCB design with one rep:

Analysis proceeds just as in the two-factor ANOVA:

yij − y·· = (yi· − y··) + (y·j − y··) + (yij − yi· − y·j + y··)SSTotal = SSTrt + SSB + SSE

ANOVA tableSource SS dof MS F-ratio

Trt SST m1 − 1 SST/(m1 − 1) MST/MSEBlock SSB m2 − 1 SSB/(m2 − 1) (MSB/MSE)Error SSE (m1 − 1)(m2 − 1) SSE/(m1 − 1)(m2 − 1)Total SSTotal m1m2 − 1

Page 297: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Analysis of the RCB design with one rep:

Analysis proceeds just as in the two-factor ANOVA:

yij − y·· = (yi· − y··) + (y·j − y··) + (yij − yi· − y·j + y··)SSTotal = SSTrt + SSB + SSE

ANOVA tableSource SS dof MS F-ratio

Trt SST m1 − 1 SST/(m1 − 1) MST/MSEBlock SSB m2 − 1 SSB/(m2 − 1) (MSB/MSE)Error SSE (m1 − 1)(m2 − 1) SSE/(m1 − 1)(m2 − 1)Total SSTotal m1m2 − 1

Page 298: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANOVA for nitrogen example:

Source SS dof MS F-ratio p-valueTrt 201.32 5 40.26 5.59 0.004

Block 197.00 3 65.67 9.12Error 108.01 15 7.20Total 506.33 23

Page 299: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) 5 201.316 40 .263 2 .3761 0.08024 .R e s i d u a l s 18 305.012 16 .945

#######

Page 300: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) + as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) 5 201.316 40 .263 5 .5917 0.004191 ∗∗as . f a c t o r ( c ( rw ) ) 3 197.004 65 .668 9 .1198 0.001116 ∗∗R e s i d u a l s 15 108.008 7 . 2 0 1

#######

Page 301: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) 23 506 .33 2 2 . 0 1R e s i d u a l s 0 0 . 0 0

#######

Questions:

• Can we test for interaction?

• Do we care about interaction in this case, or just main effects?

• Suppose it were true that “in row 2, timing 6 is significantly better thantiming 4, but in row 3, treatment 3 is better.” Is this relevant in forrecommending a timing treatment for other fields?

Page 302: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) 23 506 .33 2 2 . 0 1R e s i d u a l s 0 0 . 0 0

#######

Questions:

• Can we test for interaction?

• Do we care about interaction in this case, or just main effects?

• Suppose it were true that “in row 2, timing 6 is significantly better thantiming 4, but in row 3, treatment 3 is better.” Is this relevant in forrecommending a timing treatment for other fields?

Page 303: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) 23 506 .33 2 2 . 0 1R e s i d u a l s 0 0 . 0 0

#######

Questions:

• Can we test for interaction?

• Do we care about interaction in this case, or just main effects?

• Suppose it were true that “in row 2, timing 6 is significantly better thantiming 4, but in row 3, treatment 3 is better.” Is this relevant in forrecommending a timing treatment for other fields?

Page 304: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) 23 506 .33 2 2 . 0 1R e s i d u a l s 0 0 . 0 0

#######

Questions:

• Can we test for interaction?

• Do we care about interaction in this case, or just main effects?

• Suppose it were true that “in row 2, timing 6 is significantly better thantiming 4, but in row 3, treatment 3 is better.” Is this relevant in forrecommending a timing treatment for other fields?

Page 305: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) 23 506 .33 2 2 . 0 1R e s i d u a l s 0 0 . 0 0

#######

Questions:

• Can we test for interaction?

• Do we care about interaction in this case, or just main effects?

• Suppose it were true that “in row 2, timing 6 is significantly better thantiming 4, but in row 3, treatment 3 is better.” Is this relevant in forrecommending a timing treatment for other fields?

Page 306: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Alternative ANOVAs

#######> anova ( lm ( c ( y )˜ as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )as . f a c t o r ( c ( t r t ) ) : as . f a c t o r ( c ( rw ) ) 23 506 .33 2 2 . 0 1R e s i d u a l s 0 0 . 0 0

#######

Questions:

• Can we test for interaction?

• Do we care about interaction in this case, or just main effects?

• Suppose it were true that “in row 2, timing 6 is significantly better thantiming 4, but in row 3, treatment 3 is better.” Is this relevant in forrecommending a timing treatment for other fields?

Page 307: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 308: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 309: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 310: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 311: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 312: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 313: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 314: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 315: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 316: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Did blocking help?

Consider CRD as an alternative:

block 1 2 4 3 2 1 4block 2 5 5 3 4 1 4block 3 6 3 4 2 6 5block 4 1 2 6 2 5 6

• Advantages:• more possible treatment assignments, so power is increased in a

randomization test.• If we don’t estimate block effects, we’ll have more dof for error.

• Disadvantages:• It is possible, (but unlikely) that some treatment level will get assigned

many times to a “good” row, leading to post-experimental bias.• If “row” is a big source of variation, then ignoring it may lead to an overly

large MSE.

Page 317: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Necessity of blocking

Consider comparing the F -statistic from a CRD with that from an RCB:

According to Cochran and Cox (1957)

MSEcrd =SSB + n(m − 1)MSErcbd

nm − 1

= MSB

„n − 1

nm − 1

«+ MSErcbd

„n(m − 1)

nm − 1

«

In general, the effectiveness of blocking is a function of MSEcrd/MSErcb.

MSEcrd

MSErcbd≈ 1

m

MSB

MSErcbd+ 1

If this is large, it is worthwhile to block.

For the nitrogen example, this ratio is about 2.

Page 318: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Necessity of blocking

Consider comparing the F -statistic from a CRD with that from an RCB:

According to Cochran and Cox (1957)

MSEcrd =SSB + n(m − 1)MSErcbd

nm − 1

= MSB

„n − 1

nm − 1

«+ MSErcbd

„n(m − 1)

nm − 1

«

In general, the effectiveness of blocking is a function of MSEcrd/MSErcb.

MSEcrd

MSErcbd≈ 1

m

MSB

MSErcbd+ 1

If this is large, it is worthwhile to block.

For the nitrogen example, this ratio is about 2.

Page 319: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Necessity of blocking

Consider comparing the F -statistic from a CRD with that from an RCB:

According to Cochran and Cox (1957)

MSEcrd =SSB + n(m − 1)MSErcbd

nm − 1

= MSB

„n − 1

nm − 1

«+ MSErcbd

„n(m − 1)

nm − 1

«In general, the effectiveness of blocking is a function of MSEcrd/MSErcb.

MSEcrd

MSErcbd≈ 1

m

MSB

MSErcbd+ 1

If this is large, it is worthwhile to block.

For the nitrogen example, this ratio is about 2.

Page 320: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Necessity of blocking

Consider comparing the F -statistic from a CRD with that from an RCB:

According to Cochran and Cox (1957)

MSEcrd =SSB + n(m − 1)MSErcbd

nm − 1

= MSB

„n − 1

nm − 1

«+ MSErcbd

„n(m − 1)

nm − 1

«In general, the effectiveness of blocking is a function of MSEcrd/MSErcb.

MSEcrd

MSErcbd≈ 1

m

MSB

MSErcbd+ 1

If this is large, it is worthwhile to block.

For the nitrogen example, this ratio is about 2.

Page 321: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Necessity of blocking

Consider comparing the F -statistic from a CRD with that from an RCB:

According to Cochran and Cox (1957)

MSEcrd =SSB + n(m − 1)MSErcbd

nm − 1

= MSB

„n − 1

nm − 1

«+ MSErcbd

„n(m − 1)

nm − 1

«In general, the effectiveness of blocking is a function of MSEcrd/MSErcb.

MSEcrd

MSErcbd≈ 1

m

MSB

MSErcbd+ 1

If this is large, it is worthwhile to block.

For the nitrogen example, this ratio is about 2.

Page 322: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Necessity of blocking

Consider comparing the F -statistic from a CRD with that from an RCB:

According to Cochran and Cox (1957)

MSEcrd =SSB + n(m − 1)MSErcbd

nm − 1

= MSB

„n − 1

nm − 1

«+ MSErcbd

„n(m − 1)

nm − 1

«In general, the effectiveness of blocking is a function of MSEcrd/MSErcb.

MSEcrd

MSErcbd≈ 1

m

MSB

MSErcbd+ 1

If this is large, it is worthwhile to block.

For the nitrogen example, this ratio is about 2.

Page 323: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 324: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 325: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 326: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 327: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 328: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 329: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 330: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 331: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

California brown shrimp

Research objective:

• What are the effects of water temp, water salinity and pop density ongrowth rate of shrimp in aquaria?

• Are the effects of each factor consistent across levels of the others?

Experimental design: A CRD with three factors.

• temperature (25◦ C, 35◦ C)

• salinity (10%, 25% 40%)

• density (80 shrimp/40L, 160 shrimp/40L)

2× 2× 3 = 12 treatment combos3 aquaria randomly assigned to each combo36 aquaria total

Page 332: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Marginal plots

25 35

100

200

300

400

500

temperature

gain

●●

10 25 40

100

200

300

400

500

salinity

gain

80 160

100

200

300

400

500

density

gain

Page 333: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Two-way plots

25.10 35.25

100

200

300

400

500

gain

25.80 25.160

100

200

300

400

500

gain

10.80 10.160

100

200

300

400

500

gain

Page 334: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction plots

interaction . plot (ftmp[fdns==80],fsal[ fdns==80],y[fdns==80]

100

200

300

400

temperature

gain

25 35

salinity

102540

density=80

100

150

200

250

300

temperature

gain

25 35

salinity

102540

density=160

Page 335: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

One-way ANOVA

> anova ( lm ( y ˜ ftmp : f s a l : f d n s ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )ftmp : f s a l : f d n s 11 467636 42512 14 .640 4 . 3 6 4 e−08 ∗∗∗R e s i d u a l s 24 69691 2904

●●

●●

●●

●●

●●

−2 −1 0 1 2

−10

0−

500

50

Theoretical Quantiles

Sam

ple

Qua

ntile

s ●

●●

●●

●●

●●

●●

100 200 300 400

−10

0−

500

50

fitted

resi

dual

s

Page 336: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Box-Cox transformation?

cavg<−t a p p l y ( y , l i s t ( ftmp , f s a l , f d n s ) , mean )cssd<−t a p p l y ( y , l i s t ( ftmp , f s a l , f d n s ) , sd )> max ( c s s d )/ min ( c s s d )[ 1 ] 9 .521408

4.5 5.0 5.5 6.0

2.5

3.0

3.5

4.0

4.5

log(cavg)

log(

cssd

)

Page 337: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Quarter power transformation?

cavg<−t a p p l y ( y ˆ . 2 5 , l i s t ( ftmp , f s a l , f d n s ) , mean )cssd<−t a p p l y ( y ˆ . 2 5 , l i s t ( ftmp , f s a l , f d n s ) , sd )> max ( c s s d )/ min ( c s s d )[ 1 ] 8 .564542

●●

1.1 1.2 1.3 1.4 1.5

−3.

0−

2.0

−1.

0

log(cavg)

log(

cssd

)

Page 338: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

One way ANOVA on transformed data

> yt<−y ˆ . 2 5> anova ( lm ( y t ˜ ftmp : f s a l : f d n s ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )ftmp : f s a l : f d n s 11 10.2689 0.93354 25 .412 1 . 4 5 1 e−10 ∗∗∗R e s i d u a l s 24 0 .8817 0.03674

●●

●●

●●

●●

●●

−2 −1 0 1 2

−0.

4−

0.2

0.0

0.1

0.2

Theoretical Quantiles

Sam

ple

Qua

ntile

s

●●

●●

●●

●●

●●

3.0 3.5 4.0 4.5

−0.

4−

0.2

0.0

0.1

0.2

fitted

resi

dual

s

Page 339: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Three-way plots for transformed data3.

03.

54.

04.

5

temperature

gain

25 35

salinity

102540

density=80

3.0

3.2

3.4

3.6

3.8

4.0

4.2

temperature

gain

25 35

salinity

102540

density=160

Page 340: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Three factor ANOVA full model

> anova ( lm ( y t ˜( ftmp+f s a l+f d n s ) ˆ 3 ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )ftmp 1 0.8707 0.87073 23.7024 5 . 8 0 3 e−05 ∗∗∗f s a l 2 2 .6040 1.30199 35.4417 6 . 8 5 9 e−08 ∗∗∗f d n s 1 0 .2025 0.20252 5 .5129 0.02745 ∗ftmp : f s a l 2 6 .2571 3.12856 85.1634 1 . 2 5 9 e−11 ∗∗∗ftmp : f d n s 1 0 .0907 0.09066 2 .4679 0.12928f s a l : f d n s 2 0 .0155 0.00776 0 .2113 0.81105ftmp : f s a l : f d n s 2 0 .2284 0.11420 3 .1085 0.06302 .R e s i d u a l s 24 0 .8817 0.03674

Page 341: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Model selection via backwards elimination

> anova ( lm ( y t ˜( ftmp+f s a l+f d n s ) ˆ 2 ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )ftmp 1 0.8707 0.87073 20.3945 0.0001206 ∗∗∗f s a l 2 2 .6040 1.30199 30.4955 1 . 5 1 9 e−07 ∗∗∗f d n s 1 0 .2025 0.20252 4 .7436 0.0386683 ∗ftmp : f s a l 2 6 .2571 3.12856 73.2781 2 . 0 6 3 e−11 ∗∗∗ftmp : f d n s 1 0 .0907 0.09066 2 .1235 0.1570279f s a l : f d n s 2 0 .0155 0.00776 0 .1818 0.8348357R e s i d u a l s 26 1 .1101 0.04269

##########

> anova ( lm ( y t ˜( ftmp+f s a l )ˆ2 + f d n s ) )

Df Sum Sq Mean Sq F v a l u e Pr(>F )ftmp 1 0.8707 0.87073 20 .762 8 . 6 8 5 e−05 ∗∗∗f s a l 2 2 .6040 1.30199 31 .045 6 . 2 0 2 e−08 ∗∗∗f d n s 1 0 .2025 0.20252 4 . 8 2 9 0.03612 ∗ftmp : f s a l 2 6 .2571 3.12856 74 .597 3 . 6 8 8 e−12 ∗∗∗R e s i d u a l s 29 1 .2162 0.04194

Page 342: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 343: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 344: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SE

LSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 345: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 346: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 347: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 348: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 349: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 350: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 351: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 352: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 353: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for density

Var[y··d1· − y··d2·] = σ2

m1m2n+ σ2

m1m2n= σ2 × 2

m1m2n

SE[y··d1· − y··d2·] =q

MSE× 2m1m2n

t(d1, d2) =y··d1· − y··d2·

SELSD = t1−α/2,ν × SE

95%CI = (y··d1· − y··d2·)± t1−α/2,ν × SE

= (y··d1· − y··d2·)± LSD

• ν = 29, α = 0.05, t1−α/2,ν = 2.045

• MSE= 0.0419

• 2/(m1m2n) = 2/(2× 3× 3) = 1/9

• t-stat = (4.059− 3.909)/p.0419/9 = 2.1985, p-val=0.036

• LSD = 2.045×p.0419/9 = 0.1395

• 95% CI = (0.0105, 0.289)

Page 354: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Inference for temperature× salinity3.

03.

54.

0

temperature

gain

25 35

salinity

102540

Page 355: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 356: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 357: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 358: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 359: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 360: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 361: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 362: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 363: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 364: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

C = (µ1j1· − µ2j1·)− (µ1j2· − µ2j2·)

C = (y1j1·· − y2j1··)− (y1j2·· − y2j2··)

Var[C ] = σ2 × 4× 1m3n

SE[C ] =q

MSE× 4× 1m3n

LSD = t1−α/2,ν × SE

• SE =p

0.0419× 4/6 = 0.167

• t.975,29 = 2.045

• LSD =0.342

Page 365: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

> t a p p l y ( yt , l i s t ( ftmp , f s a l ) , mean )10 25 40

25 2.886678 4.436741 4.16493535 4.376452 4.130135 3.914897

C1,2 = (2.8867− 4.3765)− (4.4367− 4.1301) = −1.7964

C1,3 = (2.8867− 4.3765)− (4.1649− 3.9149) = −1.7398

C2,3 = (4.4367− 4.1301)− (4.1649− 3.9149) = 0.0566

Page 366: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

> t a p p l y ( yt , l i s t ( ftmp , f s a l ) , mean )10 25 40

25 2.886678 4.436741 4.16493535 4.376452 4.130135 3.914897

C1,2 = (2.8867− 4.3765)− (4.4367− 4.1301) = −1.7964

C1,3 = (2.8867− 4.3765)− (4.1649− 3.9149) = −1.7398

C2,3 = (4.4367− 4.1301)− (4.1649− 3.9149) = 0.0566

Page 367: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

> t a p p l y ( yt , l i s t ( ftmp , f s a l ) , mean )10 25 40

25 2.886678 4.436741 4.16493535 4.376452 4.130135 3.914897

C1,2 = (2.8867− 4.3765)− (4.4367− 4.1301) = −1.7964

C1,3 = (2.8867− 4.3765)− (4.1649− 3.9149) = −1.7398

C2,3 = (4.4367− 4.1301)− (4.1649− 3.9149) = 0.0566

Page 368: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

> t a p p l y ( yt , l i s t ( ftmp , f s a l ) , mean )10 25 40

25 2.886678 4.436741 4.16493535 4.376452 4.130135 3.914897

C1,2 = (2.8867− 4.3765)− (4.4367− 4.1301) = −1.7964

C1,3 = (2.8867− 4.3765)− (4.1649− 3.9149) = −1.7398

C2,3 = (4.4367− 4.1301)− (4.1649− 3.9149) = 0.0566

Page 369: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Interaction contrasts

> t a p p l y ( yt , l i s t ( ftmp , f s a l ) , mean )10 25 40

25 2.886678 4.436741 4.16493535 4.376452 4.130135 3.914897

C1,2 = (2.8867− 4.3765)− (4.4367− 4.1301) = −1.7964

C1,3 = (2.8867− 4.3765)− (4.1649− 3.9149) = −1.7398

C2,3 = (4.4367− 4.1301)− (4.1649− 3.9149) = 0.0566

Page 370: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Conclusions

Density: Moderate evidence that increasing density decreases gain, consistentlyacross other factors.

Temperature and Salinity : Increasing temperature has a larger positive effecton gain at low salinity than at medium or high salinity.

What other contrasts might be of interest?

Page 371: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Conclusions

Density: Moderate evidence that increasing density decreases gain, consistentlyacross other factors.

Temperature and Salinity : Increasing temperature has a larger positive effecton gain at low salinity than at medium or high salinity.

What other contrasts might be of interest?

Page 372: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Conclusions

Density: Moderate evidence that increasing density decreases gain, consistentlyacross other factors.

Temperature and Salinity : Increasing temperature has a larger positive effecton gain at low salinity than at medium or high salinity.

What other contrasts might be of interest?

Page 373: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Conclusions

Density: Moderate evidence that increasing density decreases gain, consistentlyacross other factors.

Temperature and Salinity : Increasing temperature has a larger positive effecton gain at low salinity than at medium or high salinity.

What other contrasts might be of interest?

Page 374: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Oxygen ventilation):

Interest in measuring the effects of exercise type on oxygen uptake.

Experimental units: 12 healthy males between 20 and 35 who didn’t exerciseregularly.

Design: Six subjects randomly assigned to a 12-week step aerobics program, sixto 12-weeks of outdoor running on flat terrain.

Response: Before and after the 12 week program, each subject’s O2 uptakewas tested while on an inclined treadmill.

y = change in O2 uptake

Page 375: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Oxygen ventilation):

Interest in measuring the effects of exercise type on oxygen uptake.

Experimental units: 12 healthy males between 20 and 35 who didn’t exerciseregularly.

Design: Six subjects randomly assigned to a 12-week step aerobics program, sixto 12-weeks of outdoor running on flat terrain.

Response: Before and after the 12 week program, each subject’s O2 uptakewas tested while on an inclined treadmill.

y = change in O2 uptake

Page 376: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Oxygen ventilation):

Interest in measuring the effects of exercise type on oxygen uptake.

Experimental units: 12 healthy males between 20 and 35 who didn’t exerciseregularly.

Design: Six subjects randomly assigned to a 12-week step aerobics program, sixto 12-weeks of outdoor running on flat terrain.

Response: Before and after the 12 week program, each subject’s O2 uptakewas tested while on an inclined treadmill.

y = change in O2 uptake

Page 377: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Oxygen ventilation):

Interest in measuring the effects of exercise type on oxygen uptake.

Experimental units: 12 healthy males between 20 and 35 who didn’t exerciseregularly.

Design: Six subjects randomly assigned to a 12-week step aerobics program, sixto 12-weeks of outdoor running on flat terrain.

Response: Before and after the 12 week program, each subject’s O2 uptakewas tested while on an inclined treadmill.

y = change in O2 uptake

Page 378: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Example(Oxygen ventilation):

Interest in measuring the effects of exercise type on oxygen uptake.

Experimental units: 12 healthy males between 20 and 35 who didn’t exerciseregularly.

Design: Six subjects randomly assigned to a 12-week step aerobics program, sixto 12-weeks of outdoor running on flat terrain.

Response: Before and after the 12 week program, each subject’s O2 uptakewas tested while on an inclined treadmill.

y = change in O2 uptake

Page 379: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

A B

−10

−5

05

1015

grp

o2_c

hang

e

A

A

A A

A

A

B

B

BB

B

B

20 22 24 26 28 30−

50

510

age

resi

dual

s

Page 380: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 381: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 382: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 383: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 384: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 385: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 386: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Initial analysis:

This is a CRD with one two-level factor.

The plot indicates a moderately large difference in the two sample populations.We can do a t-test:

tobs =

˛˛ yA − yB

sp

p2/6

˛˛ =

˛7.705− (−2.767)

6.239× .577

˛= 2.907, Pr(|t10| ≥ 2.907) = 0.0156

So we have reasonably strong evidence of a difference in treatment effects.

However, a plot of residuals versus age of the subject indicates a couple ofcauses for concern with our inference:

1. The residual plot indicates that response increases with age (why?),regardless of treatment group.

2. Just due to chance, the subjects assigned to group A were older than theones assigned to B.

Page 387: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 388: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 389: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 390: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 391: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 392: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 393: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 394: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Is the observed difference in yA, yB due to

• treatment?

• age?

• both?

A linear model for ANCOVA: yi,j = response of the jth subject in treatment i :

yi,j = µ+ ai + b × xi,j + εi,j

This model gives a linear relationship between age and response for each group:

intercept slope errorif i = A, Yi = (µ+ aA) + b × xi,j + εi,j

i = B, Yi = (µ+ aB) + b × xi,j + εi,j

Parameter estimates can be obtained by minimizing the residual sum of squares:

(µ, a, b) = arg minµ,a,b

Xi,j

(yi,j − [µ+ ai + b × xi,j ])2

Page 395: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

A

A

A A

AA

B

B

BB

B

B

20 22 24 26 28 30

−10

−5

05

1015

age

o2_c

hang

e

A

A

A A

AA

B

B

BB

B

B

20 22 24 26 28 30−

10−

50

510

15age

o2_c

hang

e

Page 396: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA decomposition

Consider the following two ANOVAs:

> anova ( lm ( o2 change ˜ grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 8 .4503 0.01565 ∗R e s i d u a l s 10 389 .30 3 8 . 9 3

> anova ( lm ( o2 change ˜ grp+age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 42 .062 0.0001133 ∗∗∗age 1 318 .91 318 .91 40 .776 0.0001274 ∗∗∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

The second one decomposes the variation in the data that is orthogonal totreatment (SSE from the first ANOVA) into

• a part that can be ascribed to age (SS age in the second ANOVA), and

• everything else (SSE from second ANOVA).

Page 397: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA decomposition

Consider the following two ANOVAs:

> anova ( lm ( o2 change ˜ grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 8 .4503 0.01565 ∗R e s i d u a l s 10 389 .30 3 8 . 9 3

> anova ( lm ( o2 change ˜ grp+age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 42 .062 0.0001133 ∗∗∗age 1 318 .91 318 .91 40 .776 0.0001274 ∗∗∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

The second one decomposes the variation in the data that is orthogonal totreatment (SSE from the first ANOVA) into

• a part that can be ascribed to age (SS age in the second ANOVA), and

• everything else (SSE from second ANOVA).

Page 398: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA decomposition

Consider the following two ANOVAs:

> anova ( lm ( o2 change ˜ grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 8 .4503 0.01565 ∗R e s i d u a l s 10 389 .30 3 8 . 9 3

> anova ( lm ( o2 change ˜ grp+age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 42 .062 0.0001133 ∗∗∗age 1 318 .91 318 .91 40 .776 0.0001274 ∗∗∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

The second one decomposes the variation in the data that is orthogonal totreatment (SSE from the first ANOVA) into

• a part that can be ascribed to age (SS age in the second ANOVA), and

• everything else (SSE from second ANOVA).

Page 399: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA decomposition

Consider the following two ANOVAs:

> anova ( lm ( o2 change ˜ grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 8 .4503 0.01565 ∗R e s i d u a l s 10 389 .30 3 8 . 9 3

> anova ( lm ( o2 change ˜ grp+age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 42 .062 0.0001133 ∗∗∗age 1 318 .91 318 .91 40 .776 0.0001274 ∗∗∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

The second one decomposes the variation in the data that is orthogonal totreatment (SSE from the first ANOVA) into

• a part that can be ascribed to age (SS age in the second ANOVA), and

• everything else (SSE from second ANOVA).

Page 400: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA decomposition

Consider the following two ANOVAs:

> anova ( lm ( o2 change ˜ grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 8 .4503 0.01565 ∗R e s i d u a l s 10 389 .30 3 8 . 9 3

> anova ( lm ( o2 change ˜ grp+age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

grp 1 328 .97 328 .97 42 .062 0.0001133 ∗∗∗age 1 318 .91 318 .91 40 .776 0.0001274 ∗∗∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

The second one decomposes the variation in the data that is orthogonal totreatment (SSE from the first ANOVA) into

• a part that can be ascribed to age (SS age in the second ANOVA), and

• everything else (SSE from second ANOVA).

Page 401: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Now consider two other ANOVAs:

> anova ( lm ( o2 change ˜ age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 40 .519 8 . 1 8 7 e−05 ∗∗∗R e s i d u a l s 10 142 .18 1 4 . 2 2

> anova ( lm ( o2 change ˜ age+grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 73 .6594 1 . 2 5 7 e−05 ∗∗∗grp 1 7 1 . 7 9 7 1 . 7 9 9 .1788 0.01425 ∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

How do we interpret these results?

• Age can explain a very large amount of variation attributable to group.

• Group can explain a moderately large amount of variation attributable toage.

Page 402: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Now consider two other ANOVAs:

> anova ( lm ( o2 change ˜ age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 40 .519 8 . 1 8 7 e−05 ∗∗∗R e s i d u a l s 10 142 .18 1 4 . 2 2

> anova ( lm ( o2 change ˜ age+grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 73 .6594 1 . 2 5 7 e−05 ∗∗∗grp 1 7 1 . 7 9 7 1 . 7 9 9 .1788 0.01425 ∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

How do we interpret these results?

• Age can explain a very large amount of variation attributable to group.

• Group can explain a moderately large amount of variation attributable toage.

Page 403: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Now consider two other ANOVAs:

> anova ( lm ( o2 change ˜ age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 40 .519 8 . 1 8 7 e−05 ∗∗∗R e s i d u a l s 10 142 .18 1 4 . 2 2

> anova ( lm ( o2 change ˜ age+grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 73 .6594 1 . 2 5 7 e−05 ∗∗∗grp 1 7 1 . 7 9 7 1 . 7 9 9 .1788 0.01425 ∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

How do we interpret these results?

• Age can explain a very large amount of variation attributable to group.

• Group can explain a moderately large amount of variation attributable toage.

Page 404: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

ANCOVA

Now consider two other ANOVAs:

> anova ( lm ( o2 change ˜ age ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 40 .519 8 . 1 8 7 e−05 ∗∗∗R e s i d u a l s 10 142 .18 1 4 . 2 2

> anova ( lm ( o2 change ˜ age+grp ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

age 1 576 .09 576 .09 73 .6594 1 . 2 5 7 e−05 ∗∗∗grp 1 7 1 . 7 9 7 1 . 7 9 9 .1788 0.01425 ∗R e s i d u a l s 9 7 0 . 3 9 7 . 8 2

How do we interpret these results?

• Age can explain a very large amount of variation attributable to group.

• Group can explain a moderately large amount of variation attributable toage.

Page 405: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 406: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 407: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 408: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 409: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 410: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 411: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 412: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Blocking, ANCOVA and unbalanced designs:

Suppose we

• randomly assign F1 to experimental material, but

• suspect that some nuisance factor F2 is a large source of variation.

Our options are:

• Block according to F2: This allows an even allocation of treatmentsacross levels of F2. As a result, we can separately estimate the effects ofF1 and F2.

• Do a CRD with respect to F1, but account for F2 somehow in theanalysis:• For a standard two-factor ANOVA, F2 must be treated as a categorical

variable (“old”, “young”).• ANCOVA allows for more precise control of variation due to F2.

For this latter approach, the design is unlikely to be completely balanced, andso the effects of F1 can’t be estimated separately from those of F2.

This is primarily a problem for experiments with small sample sizes: Theprobability of a large design imbalance decreases as a function of sample size(as does the correlation between the parameter estimates) as long as F1 israndomly assigned.

Page 413: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 414: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 415: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 416: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 417: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 418: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 419: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Researches would often like to

• assess the significance of a factor of interest, while

• “controlling” for the variation due to one or more nuisance factors.

Would doing so highlight or eliminate and effect of a factor of interest?

Consider the following simple setup:

• Two factors:• F1 = treatment (A vs B)• F2 = block (location 1 versus 2)

• 10 experimental units

• Balanced CRD in F1, but not in F1×F2.

Page 420: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling eliminates the effect

A

A

A

A

A

B

BBB

B0.0

0.5

1.0

1.5

2.0

2.5

f2

y

1 2

A

A

A

A

A

B

BBB

B0.0

0.5

1.0

1.5

2.0

2.5

f2

y

1 2

A

A

A

A

A

B

BBB

B0.0

0.5

1.0

1.5

2.0

2.5

f2

y

1 2

Page 421: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Looking at things marginally in F1, we have yA > yB , and there seems to be aneffect of F1=A versus B.

This is highlighted in the second panel of the figure, which shows the differencebetween the sample marginal means and the grand mean seems large comparedto error variance.

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 3 .5824 3 .5824 21 .577 0.002355 ∗∗f 2 1 4 .2971 4 .2971 25 .882 0.001419 ∗∗R e s i d u a l s 7 1 .1622 0 .1660

However, notice the imbalance:

• 4 A observations under F2=1, 1 under F2=2

• 1 B observations under F2=1, 4 under F2=2

Page 422: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Looking at things marginally in F1, we have yA > yB , and there seems to be aneffect of F1=A versus B.

This is highlighted in the second panel of the figure, which shows the differencebetween the sample marginal means and the grand mean seems large comparedto error variance.

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 3 .5824 3 .5824 21 .577 0.002355 ∗∗f 2 1 4 .2971 4 .2971 25 .882 0.001419 ∗∗R e s i d u a l s 7 1 .1622 0 .1660

However, notice the imbalance:

• 4 A observations under F2=1, 1 under F2=2

• 1 B observations under F2=1, 4 under F2=2

Page 423: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Looking at things marginally in F1, we have yA > yB , and there seems to be aneffect of F1=A versus B.

This is highlighted in the second panel of the figure, which shows the differencebetween the sample marginal means and the grand mean seems large comparedto error variance.

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 3 .5824 3 .5824 21 .577 0.002355 ∗∗f 2 1 4 .2971 4 .2971 25 .882 0.001419 ∗∗R e s i d u a l s 7 1 .1622 0 .1660

However, notice the imbalance:

• 4 A observations under F2=1, 1 under F2=2

• 1 B observations under F2=1, 4 under F2=2

Page 424: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

Looking at things marginally in F1, we have yA > yB , and there seems to be aneffect of F1=A versus B.

This is highlighted in the second panel of the figure, which shows the differencebetween the sample marginal means and the grand mean seems large comparedto error variance.

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 3 .5824 3 .5824 21 .577 0.002355 ∗∗f 2 1 4 .2971 4 .2971 25 .882 0.001419 ∗∗R e s i d u a l s 7 1 .1622 0 .1660

However, notice the imbalance:

• 4 A observations under F2=1, 1 under F2=2

• 1 B observations under F2=1, 4 under F2=2

Page 425: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

What happens if we explain the variability in y using F2 first, then F1?

Look at the black lines in the third panel of the plot: These are the marginalmeans for F2. Within levels of F2, differences between levels of F1 are small.

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 7 .8064 7 .8064 47.0185 0.0002405 ∗∗∗f 1 1 0 .0731 0 .0731 0 .4405 0.5281460R e s i d u a l s 7 1 .1622 0 .1660

The ANOVA quantifies this: There is variability in the data that can beexplained by either F1 or F2. In this case,

• SSA > SSA|B• SSB > SSB|A

Page 426: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

What happens if we explain the variability in y using F2 first, then F1?

Look at the black lines in the third panel of the plot: These are the marginalmeans for F2. Within levels of F2, differences between levels of F1 are small.

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 7 .8064 7 .8064 47.0185 0.0002405 ∗∗∗f 1 1 0 .0731 0 .0731 0 .4405 0.5281460R e s i d u a l s 7 1 .1622 0 .1660

The ANOVA quantifies this: There is variability in the data that can beexplained by either F1 or F2. In this case,

• SSA > SSA|B• SSB > SSB|A

Page 427: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

What happens if we explain the variability in y using F2 first, then F1?

Look at the black lines in the third panel of the plot: These are the marginalmeans for F2. Within levels of F2, differences between levels of F1 are small.

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 7 .8064 7 .8064 47.0185 0.0002405 ∗∗∗f 1 1 0 .0731 0 .0731 0 .4405 0.5281460R e s i d u a l s 7 1 .1622 0 .1660

The ANOVA quantifies this: There is variability in the data that can beexplained by either F1 or F2. In this case,

• SSA > SSA|B• SSB > SSB|A

Page 428: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

What happens if we explain the variability in y using F2 first, then F1?

Look at the black lines in the third panel of the plot: These are the marginalmeans for F2. Within levels of F2, differences between levels of F1 are small.

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 7 .8064 7 .8064 47.0185 0.0002405 ∗∗∗f 1 1 0 .0731 0 .0731 0 .4405 0.5281460R e s i d u a l s 7 1 .1622 0 .1660

The ANOVA quantifies this: There is variability in the data that can beexplained by either F1 or F2. In this case,

• SSA > SSA|B• SSB > SSB|A

Page 429: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling for a factor

What happens if we explain the variability in y using F2 first, then F1?

Look at the black lines in the third panel of the plot: These are the marginalmeans for F2. Within levels of F2, differences between levels of F1 are small.

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 7 .8064 7 .8064 47.0185 0.0002405 ∗∗∗f 1 1 0 .0731 0 .0731 0 .4405 0.5281460R e s i d u a l s 7 1 .1622 0 .1660

The ANOVA quantifies this: There is variability in the data that can beexplained by either F1 or F2. In this case,

• SSA > SSA|B• SSB > SSB|A

Page 430: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling highlights the effect

Do these inequalities always hold?

A

A

A

A

A

B

BBB

B

0.0

0.5

1.0

1.5

2.0

2.5

f2

y

1 2

A

A

A

A

A

B

BBB

B

0.0

0.5

1.0

1.5

2.0

2.5

f2

y

1 2

A

A

A

A

A

B

BBB

B

0.0

0.5

1.0

1.5

2.0

2.5

f2

y

1 2

Page 431: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling highlights the effect

In this case F1=A is higher than F1=B for both values of F2.

But there are more A observations in the low-mean value of F2 than thehigh-mean value. The second and third plots suggest

• Marginally, the difference between levels of F1 are small.

• Within each group, the difference between levels of F1 are larger.

Thus “controlling” for F2 highlights the differences between levels of F1. Thisis confirmed in the corresponding ANOVA tables:

Page 432: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling highlights the effect

In this case F1=A is higher than F1=B for both values of F2.

But there are more A observations in the low-mean value of F2 than thehigh-mean value. The second and third plots suggest

• Marginally, the difference between levels of F1 are small.

• Within each group, the difference between levels of F1 are larger.

Thus “controlling” for F2 highlights the differences between levels of F1. Thisis confirmed in the corresponding ANOVA tables:

Page 433: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling highlights the effect

In this case F1=A is higher than F1=B for both values of F2.

But there are more A observations in the low-mean value of F2 than thehigh-mean value. The second and third plots suggest

• Marginally, the difference between levels of F1 are small.

• Within each group, the difference between levels of F1 are larger.

Thus “controlling” for F2 highlights the differences between levels of F1. Thisis confirmed in the corresponding ANOVA tables:

Page 434: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling highlights the effect

In this case F1=A is higher than F1=B for both values of F2.

But there are more A observations in the low-mean value of F2 than thehigh-mean value. The second and third plots suggest

• Marginally, the difference between levels of F1 are small.

• Within each group, the difference between levels of F1 are larger.

Thus “controlling” for F2 highlights the differences between levels of F1. Thisis confirmed in the corresponding ANOVA tables:

Page 435: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Controlling highlights the effect

In this case F1=A is higher than F1=B for both values of F2.

But there are more A observations in the low-mean value of F2 than thehigh-mean value. The second and third plots suggest

• Marginally, the difference between levels of F1 are small.

• Within each group, the difference between levels of F1 are larger.

Thus “controlling” for F2 highlights the differences between levels of F1. Thisis confirmed in the corresponding ANOVA tables:

Page 436: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Which ANOVA to use?

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 0 .1030 0 .1030 0 .5317 0.4895636f 2 1 5 .7851 5 .7851 29.8772 0.0009399 ∗∗∗R e s i d u a l s 7 1 .3554 0 .1936

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 4 .4804 4 .4804 23.1391 0.001943 ∗∗f 1 1 1 .4077 1 .4077 7 .2698 0.030806 ∗R e s i d u a l s 7 1 .3554 0 .1936

Some software packages combine these anova tables to form ANOVAs based on“alternative” types of sums of squares.Consider a two-factor ANOVA in which we plan on decomposing variance intoadditive effects of F1, additive effects of F2, and their interaction.

Type I SS: Sequential, orthogonal decomposition of the variance.

Type II SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms at thatlevel or below.

Type III SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms.

Page 437: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Which ANOVA to use?

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 0 .1030 0 .1030 0 .5317 0.4895636f 2 1 5 .7851 5 .7851 29.8772 0.0009399 ∗∗∗R e s i d u a l s 7 1 .3554 0 .1936

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 4 .4804 4 .4804 23.1391 0.001943 ∗∗f 1 1 1 .4077 1 .4077 7 .2698 0.030806 ∗R e s i d u a l s 7 1 .3554 0 .1936

Some software packages combine these anova tables to form ANOVAs based on“alternative” types of sums of squares.Consider a two-factor ANOVA in which we plan on decomposing variance intoadditive effects of F1, additive effects of F2, and their interaction.

Type I SS: Sequential, orthogonal decomposition of the variance.

Type II SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms at thatlevel or below.

Type III SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms.

Page 438: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Which ANOVA to use?

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 0 .1030 0 .1030 0 .5317 0.4895636f 2 1 5 .7851 5 .7851 29.8772 0.0009399 ∗∗∗R e s i d u a l s 7 1 .3554 0 .1936

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 4 .4804 4 .4804 23.1391 0.001943 ∗∗f 1 1 1 .4077 1 .4077 7 .2698 0.030806 ∗R e s i d u a l s 7 1 .3554 0 .1936

Some software packages combine these anova tables to form ANOVAs based on“alternative” types of sums of squares.Consider a two-factor ANOVA in which we plan on decomposing variance intoadditive effects of F1, additive effects of F2, and their interaction.

Type I SS: Sequential, orthogonal decomposition of the variance.

Type II SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms at thatlevel or below.

Type III SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms.

Page 439: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Which ANOVA to use?

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 0 .1030 0 .1030 0 .5317 0.4895636f 2 1 5 .7851 5 .7851 29.8772 0.0009399 ∗∗∗R e s i d u a l s 7 1 .3554 0 .1936

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 4 .4804 4 .4804 23.1391 0.001943 ∗∗f 1 1 1 .4077 1 .4077 7 .2698 0.030806 ∗R e s i d u a l s 7 1 .3554 0 .1936

Some software packages combine these anova tables to form ANOVAs based on“alternative” types of sums of squares.Consider a two-factor ANOVA in which we plan on decomposing variance intoadditive effects of F1, additive effects of F2, and their interaction.

Type I SS: Sequential, orthogonal decomposition of the variance.

Type II SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms at thatlevel or below.

Type III SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms.

Page 440: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Which ANOVA to use?

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 0 .1030 0 .1030 0 .5317 0.4895636f 2 1 5 .7851 5 .7851 29.8772 0.0009399 ∗∗∗R e s i d u a l s 7 1 .3554 0 .1936

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 4 .4804 4 .4804 23.1391 0.001943 ∗∗f 1 1 1 .4077 1 .4077 7 .2698 0.030806 ∗R e s i d u a l s 7 1 .3554 0 .1936

Some software packages combine these anova tables to form ANOVAs based on“alternative” types of sums of squares.Consider a two-factor ANOVA in which we plan on decomposing variance intoadditive effects of F1, additive effects of F2, and their interaction.

Type I SS: Sequential, orthogonal decomposition of the variance.

Type II SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms at thatlevel or below.

Type III SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms.

Page 441: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Which ANOVA to use?

> anova ( lm ( y ˜ f 1+f 2 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 1 1 0 .1030 0 .1030 0 .5317 0.4895636f 2 1 5 .7851 5 .7851 29.8772 0.0009399 ∗∗∗R e s i d u a l s 7 1 .3554 0 .1936

> anova ( lm ( y ˜ f 2+f 1 ) )Df Sum Sq Mean Sq F v a l u e Pr(>F )

f 2 1 4 .4804 4 .4804 23.1391 0.001943 ∗∗f 1 1 1 .4077 1 .4077 7 .2698 0.030806 ∗R e s i d u a l s 7 1 .3554 0 .1936

Some software packages combine these anova tables to form ANOVAs based on“alternative” types of sums of squares.Consider a two-factor ANOVA in which we plan on decomposing variance intoadditive effects of F1, additive effects of F2, and their interaction.

Type I SS: Sequential, orthogonal decomposition of the variance.

Type II SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms at thatlevel or below.

Type III SS: Sum of squares for a factor is the improvement in fit fromadding that factor, given inclusion of all other terms.

Page 442: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Types of sums of squares

So for example:

• SSF11 = RSS(0)− RSS(F1) if F1 first in sequence

• SSF11 = RSS(F2)− RSS(F1 + F2) if F1 second in sequence

• SSF12 = RSS(F2)− RSS(F1 + F2)

• SSF13 = RSS(F2,F1 : F2)− RSS(F1,F2,F1 : F2)

Type II sums of squares is very popular, and is to some extent the “default” forlinear regression analysis.

Page 443: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Types of sums of squares

So for example:

• SSF11 = RSS(0)− RSS(F1) if F1 first in sequence

• SSF11 = RSS(F2)− RSS(F1 + F2) if F1 second in sequence

• SSF12 = RSS(F2)− RSS(F1 + F2)

• SSF13 = RSS(F2,F1 : F2)− RSS(F1,F2,F1 : F2)

Type II sums of squares is very popular, and is to some extent the “default” forlinear regression analysis.

Page 444: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Types of sums of squares

So for example:

• SSF11 = RSS(0)− RSS(F1) if F1 first in sequence

• SSF11 = RSS(F2)− RSS(F1 + F2) if F1 second in sequence

• SSF12 = RSS(F2)− RSS(F1 + F2)

• SSF13 = RSS(F2,F1 : F2)− RSS(F1,F2,F1 : F2)

Type II sums of squares is very popular, and is to some extent the “default” forlinear regression analysis.

Page 445: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Types of sums of squares

So for example:

• SSF11 = RSS(0)− RSS(F1) if F1 first in sequence

• SSF11 = RSS(F2)− RSS(F1 + F2) if F1 second in sequence

• SSF12 = RSS(F2)− RSS(F1 + F2)

• SSF13 = RSS(F2,F1 : F2)− RSS(F1,F2,F1 : F2)

Type II sums of squares is very popular, and is to some extent the “default” forlinear regression analysis.

Page 446: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Types of sums of squares

So for example:

• SSF11 = RSS(0)− RSS(F1) if F1 first in sequence

• SSF11 = RSS(F2)− RSS(F1 + F2) if F1 second in sequence

• SSF12 = RSS(F2)− RSS(F1 + F2)

• SSF13 = RSS(F2,F1 : F2)− RSS(F1,F2,F1 : F2)

Type II sums of squares is very popular, and is to some extent the “default” forlinear regression analysis.

Page 447: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 448: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 449: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 450: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 451: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 452: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 453: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.

Page 454: Applied Statistics and Experimental Design Chapter 6...Factorial dataAdditive e ects modelRandomized complete block designsThree or more factorsANCOVA Example (Insecticide): In developing

Factorial data Additive effects model Randomized complete block designs Three or more factors ANCOVA

Argument for not controlling

It seems natural to talk about the “variability due to a treatment, aftercontrolling for other sources of variation.”

However, there are situations in which you might not want to “control” forother variables. Consider the following (real-life) scenario:

Clinical trial:

• Factor 1: Assigned dose of a drug (A=high or B=low)

• Factor 2: Dose reduction (yes or no)

Weaker patients experienced higher rates of drug side-effects than strongerpatients, and side effects are worse under the high dose. As a result,

• Only the strongest A patients remain in the non-reduced group;

• Only the weakest B patients go into the reduced group.

“Controlling” or adjusting for dose reduction artificially inflates the perceivedeffect of treatment.