The R Project SVN R

Rev

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

Rev 61160 Rev 61433
Line 58... Line 58...
58
}
58
}
59
\examples{
59
\examples{
60
## For a simple example see example(aov)
60
## For a simple example see example(aov)
61
 
61
 
62
# Cochran and Cox (1957, p.164)
62
# Cochran and Cox (1957, p.164)
63
# 3x3 factorial with ordered factors, each is average of 12. 
63
# 3x3 factorial with ordered factors, each is average of 12.
64
CC <- data.frame(
64
CC <- data.frame(
65
    y = c(449, 413, 326, 409, 358, 291, 341, 278, 312)/12,
65
    y = c(449, 413, 326, 409, 358, 291, 341, 278, 312)/12,
66
    P = ordered(gl(3, 3)), N = ordered(gl(3, 1, 9))
66
    P = ordered(gl(3, 3)), N = ordered(gl(3, 1, 9))
67
)
67
)
68
CC.aov <- aov(y ~ N * P, data = CC , weights = rep(12, 9))
68
CC.aov <- aov(y ~ N * P, data = CC , weights = rep(12, 9))