The R Project SVN R

Rev

Rev 61160 | Rev 67599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61160 Rev 61168
Line 94... Line 94...
94
summary(fit, split = list(B = 1:2), expand.split = TRUE)
94
summary(fit, split = list(B = 1:2), expand.split = TRUE)
95
## t.stat^2 is the F value on the A:B: C1 line (with Helmert contrasts)
95
## t.stat^2 is the F value on the A:B: C1 line (with Helmert contrasts)
96
## Now look at all three interaction contrasts
96
## Now look at all three interaction contrasts
97
cont <- c(1, -1)[A] * cbind(c(1, -1, 0), c(1, 0, -1), c(0, 1, -1))[B,]
97
cont <- c(1, -1)[A] * cbind(c(1, -1, 0), c(1, 0, -1), c(0, 1, -1))[B,]
98
se.contrast(fit, cont)  # same, due to balance.
98
se.contrast(fit, cont)  # same, due to balance.
99
rm(A,B,score)
99
rm(A, B, score)
100
 
100
 
101
 
101
 
102
## multi-stratum example where efficiencies play a role
102
## multi-stratum example where efficiencies play a role
103
utils::example(eff.aovlist)
103
utils::example(eff.aovlist)
104
fit <- aov(Yield ~ A + B * C + Error(Block), data = aovdat)
104
fit <- aov(Yield ~ A + B * C + Error(Block), data = aovdat)