Professional Documents
Culture Documents
Biostatistics
1 Introduction
ANOVA Models
3 / 18
Introduction ANOVA model estimation
ANOVA Models
One-Way Model
4 / 18
Introduction ANOVA model estimation
ANOVA Models
One-Way Model
ANOVA Models
One-Way Model
6 / 18
Introduction ANOVA model estimation
ANOVA Models
One-Way Model
This is,
yij = µ + τi + ij , i = 1, 2; j = 1, 2, 3
In matrix form:
y = Xβ +
with
y11 1 1 0 11
y12 1 1 0 12
y
1 µ
13 1 0
13
y = , X = , β = τ1 , =
y21 1 0 1 21
y22
1
τ2
0 1 22
y23 1 0 1 23
Do you notice any problem?
7 / 18
Introduction ANOVA model estimation
ANOVA Models
Two-Way Model
8 / 18
Introduction ANOVA model estimation
ANOVA Models
Two-Way Model
10 / 18
Introduction ANOVA model estimation
yij = µ + τi + ij , i = 1, 2, · · · , k; j = 1, 2, · · · , n
11 / 18
Introduction ANOVA model estimation
Now our model has a full rank W matrix since r(W ) = 2, and
we can use all previous theory to estimate the µ parameters
and to test hypotheses.
13 / 18
Introduction ANOVA model estimation
14 / 18
Introduction ANOVA model estimation
16 / 18
Introduction ANOVA model estimation
Exercise 1
Three methods of packaging frozen foods were compared by
Daniel (1974, p. 196). The response variable was ascorbic acid
(mg/100g). The data are in next table:
R code 1
# Exercise 11
library(ggplot2)
data<-read.table("ex11.txt",header=T,sep=";")
data
# Scatter plot
ggplot(data, aes(MP, y)) + geom_point()
# Boxplot
ggplot(data, aes(MP, y)) + geom_boxplot()
mod <- lm(y~MP, data=data, x=T); mod
mod$x
summary(mod)
anova(mod)
contrasts(data$MP)
18 / 18