summaryAovOnePhase(design.df, blk.str, trt.str, var.comp = NA, blk.contr = NA, trt.contr = NA, contr.matrix = all(is.na(trt.contr)), table.legend = FALSE, response = NA, latex = FALSE, fixed.names=NA)
NA
, which uses every random factor as the variance components from random.terms
.
fixed.terms
. Default is NA
, which uses the C matrix described by John and Williams (1987).
fixed.terms
. Default is NA
, which uses the C matrix described by John and Williams (1987).
contr.matrix = FALSE
, the outputs will use the contrast vectors each contributes one DF. If the contr.matrix
arguement is TRUE
the output will conbine the contrast vector for each treatment factors. The default depends on whether trt.contr
has defined, if trt.contr
has defined, then contr.matrix
becomes FALSE
.
FALSE
, which uses the original names.
table.legend
arguement. If table.legend = FALSE
, this function will return a list of two data frames. The first data frame contains the random effects and the second data frame contains the fixed effects. If the table.legend
arguement is TRUE
, then it will return a list containing two lists. The first list consists of a data frame of random effects and a character string for the legend. The second list consists of a data frame of fixed effects and a character string for the legend.
If response
arguement is used, the random effect table will have one extra column with of mean squares computed from the responses from the experiment.
Nelder JA (1965b). "The Analysis of Randomized Experiments with Orthogonal Block Structure. II. Treatment Structure and the General Analysis of Variance." Proceedings of the Royal Society of London. Series A, Mathematical and Physical Sciences, 283(1393), 163-178.
Wilkinson GN, Rogers CE (1973). "Symbolic Description of Factorial Models for Analysis of Variance." Applied Statistics, 22(3), 392-399.
terms
for more information on the structural formula.
design1 <- local({
Ani = as.factor(LETTERS[c(1,2,3,4,
5,6,7,8)])
Trt = as.factor(letters[c(1,1,1,1,
2,2,2,2)])
data.frame(Ani, Trt)
})
summaryAovOnePhase(design1, blk.str = "Ani", trt.str = "Trt")
summaryAovOnePhase(design1, blk.str = "Ani", trt.str = "Trt",
latex = TRUE, fixed.names = c("\\tau"))
Run the code above in your browser using DataLab