Class ANOVAFactorialEx1

java.lang.Object
com.imsl.test.example.stat.ANOVAFactorialEx1

public class ANOVAFactorialEx1 extends Object

Performs a two-way factorial analysis of variance.

A two-way analysis of variance is performed with balanced data discussed by Snedecor and Cochran (1967, Table 12.5.1, p. 347). The responses are the weight gains (in grams) of rats that were fed diets varying in the source (A) and level (B) of protein. The model is

$$y_{ijk} = \mu + \alpha _i + \beta _j + \gamma_{ij} + \varepsilon_{ijk} \,\,\,\,\, i = 1,\;2;\;j = 1,\;2,\;3;\;k = 1,\;2,\;...\,,\;10$$

where

$$\sum\limits_{i = 1}^2 {\alpha _i } = 0;\sum\limits_{j = 1}^3 {\beta _j } = 0;\sum\limits_{i = 1}^2 {\gamma _{ij} } = 0 \,\,\,\, {\rm{for}}\;j = 1,\;2,\;3;\;$$

and

$$\sum\limits_{j = 1}^3 {\gamma _{ij} } = 0 \,\,\,\, {\rm{for}}\;j = 1,\;2$$

The first responses in each cell in the two-way layout are given in the following table:

Protein Source (A)
Protein Level (B) Beef Cereal Pork
High 73, 102, 118, 104, 81, 107, 100, 87, 117, 111 98, 74, 56, 111, 95, 88, 82, 77, 86, 92 94, 79, 96, 98, 102, 102, 108, 91, 120, 105
Low 90, 76, 90, 64, 86, 51, 72, 90, 95, 78 107, 95, 97, 80, 98, 74, 74, 67, 89, 58 49, 82, 73, 86, 81, 97, 106, 70, 61, 82
See Also:
  • Constructor Details

    • ANOVAFactorialEx1

      public ANOVAFactorialEx1()
  • Method Details

    • main

      public static void main(String[] args)